Commit 511988a6 authored by Nicolas Fella's avatar Nicolas Fella
Browse files

Remove banner image from drawer

De facto virtually none of our apps make use of banner images in the drawer and there seems to be consensus on removing the remaining uses.
parent b5430017
......@@ -30,7 +30,6 @@ Kirigami.ApplicationWindow {
id: globalDrawer
title: "Widget gallery"
titleIcon: "applications-graphics"
bannerImageSource: "banner.jpg"
showHeaderWhenCollapsed: true
header: RowLayout {
......@@ -149,42 +148,31 @@ Kirigami.ApplicationWindow {
Kirigami.Action {
text: "Title style..."
iconName: "format-border-set-top"
Kirigami.Action {
text: qsTr("Show Banner")
checked: globalDrawer.bannerVisible
onTriggered: globalDrawer.bannerVisible = !globalDrawer.bannerVisible
}
Kirigami.Action {
text: "Title And Image"
checked: root.globalDrawer.title.length > 0 &&
root.globalDrawer.bannerImageSource.toString().length > 0
checked: root.globalDrawer.title.length > 0
enabled: globalDrawer.bannerVisible
onTriggered: {
root.globalDrawer.title = "Widget gallery"
root.globalDrawer.titleIcon = "applications-graphics"
root.globalDrawer.bannerImageSource = "banner.jpg"
}
}
Kirigami.Action {
text: "Title Only"
checked: root.globalDrawer.title.length > 0 &&
root.globalDrawer.bannerImageSource.toString().length == 0
checked: root.globalDrawer.title.length > 0
enabled: globalDrawer.bannerVisible
onTriggered: {
root.globalDrawer.title = "Widget gallery"
root.globalDrawer.titleIcon = "applications-graphics"
root.globalDrawer.bannerImageSource = ""
}
}
Kirigami.Action {
text: "None"
checked: root.globalDrawer.title.length == 0 &&
root.globalDrawer.bannerImageSource.toString().length == 0
checked: root.globalDrawer.title.length == 0
enabled: globalDrawer.bannerVisible
onTriggered: {
root.globalDrawer.title = ""
root.globalDrawer.titleIcon = "";
root.globalDrawer.bannerImageSource = ""
}
}
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment