Qml: run qmlformat
This commit is contained in:
parent
e17cc20cdb
commit
15a00512a8
2 changed files with 14 additions and 18 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
|
|
@ -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,7 +70,7 @@ 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"
|
||||
|
|
@ -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";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue