mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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>
This commit is contained in:
parent
765c4f9704
commit
4ca40bc152
6 changed files with 8 additions and 39 deletions
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue