diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-12-22 15:02:39 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2020-12-23 09:44:39 -0800 |
commit | d9661a7be8c5ecfd0daf7c907ec85d7c6c68c19b (patch) | |
tree | 297e450c9898d24d4a617ddf489386a4ce590227 /mobile-widgets/qml/DiveList.qml | |
parent | 4dc1b4ef4a8b17046ab4454570a4a5262fc15649 (diff) | |
download | subsurface-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/DiveList.qml')
-rw-r--r-- | mobile-widgets/qml/DiveList.qml | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/mobile-widgets/qml/DiveList.qml b/mobile-widgets/qml/DiveList.qml index 138b807e8..0806a8bee 100644 --- a/mobile-widgets/qml/DiveList.qml +++ b/mobile-widgets/qml/DiveList.qml @@ -14,7 +14,12 @@ Kirigami.ScrollablePage { verticalScrollBarPolicy: Qt.ScrollBarAlwaysOff property int dlHorizontalPadding: Kirigami.Units.gridUnit / 2 - Kirigami.Units.smallSpacing + 1 property QtObject diveListModel: null - Kirigami.Theme.backgroundColor: subsurfaceTheme.backgroundColor // used for background of left and right action button + // 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 + supportsRefreshing: true onRefreshingChanged: { if (refreshing) { |