diff --git a/src/leek/qml/Main.qml b/src/leek/qml/Main.qml index 5b88ee0..9b6b912 100644 --- a/src/leek/qml/Main.qml +++ b/src/leek/qml/Main.qml @@ -27,10 +27,8 @@ Kirigami.ApplicationWindow { Kirigami.CardsListView { id: modsView - delegate: ModCardDelegate { - } - model: QModListModel { - } + delegate: ModCardDelegate {} + model: QModListModel {} } } @@ -38,7 +36,9 @@ Kirigami.ApplicationWindow { required property QMod mod showClickFeedback: true - onClicked: pageStack.push(Qt.resolvedUrl("ModPage.qml"), {mod: mod}) + onClicked: pageStack.push(Qt.resolvedUrl("ModPage.qml"), { + mod: mod + }) // headerOrientation: Qt.Horizontal contentItem: Item { diff --git a/src/leek/qml/ModPage.qml b/src/leek/qml/ModPage.qml index 61aec85..326b760 100644 --- a/src/leek/qml/ModPage.qml +++ b/src/leek/qml/ModPage.qml @@ -10,9 +10,9 @@ Kirigami.Page { title: "Local mod" - onBackRequested: (event) => { - event.accepted = true - applicationWindow().pageStack.pop() + onBackRequested: event => { + event.accepted = true; + applicationWindow().pageStack.pop(); } ColumnLayout { @@ -38,11 +38,7 @@ Kirigami.Page { implicitHeight: headerContents.implicitHeight + (headerContents.anchors.topMargin * 2) // Tint the header with the dominant color of the mod's icon - color: Kirigami.ColorUtils.tintWithAlpha( - Kirigami.Theme.backgroundColor, - iconColors.dominant, - 0.1 - ) + color: Kirigami.ColorUtils.tintWithAlpha(Kirigami.Theme.backgroundColor, iconColors.dominant, 0.1) GridLayout { id: headerContents @@ -74,10 +70,10 @@ Kirigami.Page { Controls.Label { property bool hasAuthors: mod.authors.length > 0 function joinAuthors() { - return mod.authors.join(", ") + return mod.authors.join(", "); } - text: hasAuthors ? joinAuthors() : "Unknown author" + text: hasAuthors ? joinAuthors() : "Unknown author" } } } @@ -101,12 +97,12 @@ Kirigami.Page { text: { if (hasDescription) { if (mod.longDescription) { - text = mod.longDescription + text = mod.longDescription; } else { - text = mod.description + text = mod.description; } } else { - text = "The description for this mod is not available" + text = "The description for this mod is not available"; } } }