summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/main.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-22 15:02:39 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-23 09:44:39 -0800
commitd9661a7be8c5ecfd0daf7c907ec85d7c6c68c19b (patch)
tree297e450c9898d24d4a617ddf489386a4ce590227 /mobile-widgets/qml/main.qml
parent4dc1b4ef4a8b17046ab4454570a4a5262fc15649 (diff)
downloadsubsurface-d9661a7be8c5ecfd0daf7c907ec85d7c6c68c19b.tar.gz
mobile/UI: initialize Kirigami theme to use our colors
With this we should finally get the correct button colors even when switching color theme. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/main.qml')
-rw-r--r--mobile-widgets/qml/main.qml7
1 files changed, 7 insertions, 0 deletions
diff --git a/mobile-widgets/qml/main.qml b/mobile-widgets/qml/main.qml
index 26a2f6cf5..4f5344275 100644
--- a/mobile-widgets/qml/main.qml
+++ b/mobile-widgets/qml/main.qml
@@ -22,6 +22,13 @@ Kirigami.ApplicationWindow {
font: Qt.application.font
background: Rectangle { color: subsurfaceTheme.backgroundColor }
+ // we want to use our own colors for Kirigami, so let's define our colorset
+ Kirigami.Theme.inherit: false
+ Kirigami.Theme.colorSet: Kirigami.Theme.Button
+ Kirigami.Theme.backgroundColor: subsurfaceTheme.backgroundColor
+ Kirigami.Theme.textColor: subsurfaceTheme.textColor
+
+ // next setup the tab bar on top
pageStack.globalToolBar.style: Kirigami.ApplicationHeaderStyle.Breadcrumb
pageStack.globalToolBar.showNavigationButtons: (Kirigami.ApplicationHeaderStyle.ShowBackButton | Kirigami.ApplicationHeaderStyle.ShowForwardButton)
pageStack.globalToolBar.minimumHeight: 0