Qml/Main: add icon and action to placeholder
This commit is contained in:
parent
0cd631c92c
commit
53f0341d98
1 changed files with 3 additions and 1 deletions
|
|
@ -16,6 +16,7 @@ Kirigami.ApplicationWindow {
|
||||||
Kirigami.Action {
|
Kirigami.Action {
|
||||||
// download-symbolic and install-symbolic are the same icon
|
// download-symbolic and install-symbolic are the same icon
|
||||||
// but install looks worse for some reason
|
// but install looks worse for some reason
|
||||||
|
id: addAction
|
||||||
icon.name: "download-symbolic"
|
icon.name: "download-symbolic"
|
||||||
text: "Add mod"
|
text: "Add mod"
|
||||||
shortcut: StandardKey.New
|
shortcut: StandardKey.New
|
||||||
|
|
@ -84,10 +85,11 @@ Kirigami.ApplicationWindow {
|
||||||
|
|
||||||
Kirigami.PlaceholderMessage {
|
Kirigami.PlaceholderMessage {
|
||||||
anchors.centerIn: parent
|
anchors.centerIn: parent
|
||||||
|
icon.name: "edit-none"
|
||||||
visible: modsView.count === 0
|
visible: modsView.count === 0
|
||||||
text: "There's no mods installed"
|
text: "There's no mods installed"
|
||||||
explanation: "Install a mod, and it will show up here"
|
explanation: "Install a mod, and it will show up here"
|
||||||
|
helpfulAction: addAction
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue