aboutsummaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml/TemplateCheckBox.qml
diff options
context:
space:
mode:
authorGravatar Dirk Hohndel <dirk@hohndel.org>2020-12-30 18:09:39 -0800
committerGravatar Dirk Hohndel <dirk@hohndel.org>2021-01-01 11:35:39 -0800
commit4ca40bc15262193cec29f1aea02ac6964634b88c (patch)
tree342580d7a4d44c6567d1862c977e3f9ffe6798cd /mobile-widgets/qml/TemplateCheckBox.qml
parent765c4f9704e2b606a94fedff3e3fdf7deeefa2f6 (diff)
downloadsubsurface-4ca40bc15262193cec29f1aea02ac6964634b88c.tar.gz
mobile/UI: consolidate to a single check box
It was very odd that we had two slightly different styled check boxes. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
Diffstat (limited to 'mobile-widgets/qml/TemplateCheckBox.qml')
-rw-r--r--mobile-widgets/qml/TemplateCheckBox.qml11
1 files changed, 5 insertions, 6 deletions
diff --git a/mobile-widgets/qml/TemplateCheckBox.qml b/mobile-widgets/qml/TemplateCheckBox.qml
index 85aa0bef1..1ae48eb8b 100644
--- a/mobile-widgets/qml/TemplateCheckBox.qml
+++ b/mobile-widgets/qml/TemplateCheckBox.qml
@@ -6,23 +6,22 @@ import org.kde.kirigami 2.4 as Kirigami
CheckBox {
id: cb
-
indicator: Rectangle {
implicitWidth: Kirigami.Units.gridUnit
implicitHeight: Kirigami.Units.gridUnit
x: cb.leftPadding
y: parent.height / 2 - height / 2
- radius: 3
+ radius: 4
+ border.color: cb.down ? subsurfaceTheme.darkerPrimaryColor : subsurfaceTheme.primaryColor
+ border.width: 2
color: subsurfaceTheme.backgroundColor
- border.color: subsurfaceTheme.textColor
-
Rectangle {
width: parent.width / 2
height: width
x: width / 2
y: width / 2
- radius: 2
- color: subsurfaceTheme.textColor
+ radius: 3
+ color: cb.down ? subsurfaceTheme.darkerPrimaryColor : subsurfaceTheme.primaryColor
visible: cb.checked
}
}