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 {
|
||||
// download-symbolic and install-symbolic are the same icon
|
||||
// but install looks worse for some reason
|
||||
id: addAction
|
||||
icon.name: "download-symbolic"
|
||||
text: "Add mod"
|
||||
shortcut: StandardKey.New
|
||||
|
|
@ -84,10 +85,11 @@ Kirigami.ApplicationWindow {
|
|||
|
||||
Kirigami.PlaceholderMessage {
|
||||
anchors.centerIn: parent
|
||||
|
||||
icon.name: "edit-none"
|
||||
visible: modsView.count === 0
|
||||
text: "There's no mods installed"
|
||||
explanation: "Install a mod, and it will show up here"
|
||||
helpfulAction: addAction
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue