diff options
author | Rick Walsh <rickmwalsh@gmail.com> | 2017-07-20 20:43:17 +1200 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2017-07-23 03:20:58 +0900 |
commit | 213f68d922815d40786a18d29621441ea036aa0b (patch) | |
tree | 1ea0ee9470293e8f920725690170b76c90285366 /mobile-widgets/qml/Settings.qml | |
parent | 8d2b59ff31a3ae3c5113e5ed09317187650ec8b1 (diff) | |
download | subsurface-213f68d922815d40786a18d29621441ea036aa0b.tar.gz |
Mobile settings: stylize switches
Signed-off-by: Rick Walsh <rickmwalsh@gmail.com>
Diffstat (limited to 'mobile-widgets/qml/Settings.qml')
-rw-r--r-- | mobile-widgets/qml/Settings.qml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/mobile-widgets/qml/Settings.qml b/mobile-widgets/qml/Settings.qml index 6bfb621f8..4d478b119 100644 --- a/mobile-widgets/qml/Settings.qml +++ b/mobile-widgets/qml/Settings.qml @@ -379,6 +379,27 @@ Kirigami.ScrollablePage { onClicked: { manager.libdcLog = checked } + indicator: Rectangle { + implicitWidth: Kirigami.Units.largeSpacing * 3 + implicitHeight: Kirigami.Units.largeSpacing + x: libdclogButton.leftPadding + y: parent.height / 2 - height / 2 + radius: Kirigami.Units.largeSpacing * 0.5 + color: libdclogButton.checked ? + subsurfaceTheme.lightPrimaryColor : subsurfaceTheme.backgroundColor + border.color: subsurfaceTheme.darkerPrimaryColor + + Rectangle { + x: libdclogButton.checked ? parent.width - width : 0 + y: parent.height / 2 - height / 2 + width: Kirigami.Units.largeSpacing * 1.5 + height: Kirigami.Units.largeSpacing * 1.5 + radius: height / 2 + color: libdclogButton.down || libdclogButton.checked ? + subsurfaceTheme.primaryColor : subsurfaceTheme.lightPrimaryColor + border.color: subsurfaceTheme.darkerPrimaryColor + } + } } } GridLayout { |