mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: Style the gps checkbox
Style the gps checkbos on the dive edit page so it follows theme coloring. Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
parent
4698b86b13
commit
22a0ebe45d
1 changed files with 19 additions and 0 deletions
|
@ -121,6 +121,25 @@ Item {
|
|||
if (checked)
|
||||
gpsText = manager.getCurrentPosition()
|
||||
}
|
||||
indicator: Rectangle {
|
||||
implicitWidth: 20
|
||||
implicitHeight: 20
|
||||
x: checkboxGPS.leftPadding
|
||||
y: parent.height / 2 - height / 2
|
||||
radius: 4
|
||||
border.color: checkboxGPS.down ? subsurfaceTheme.PrimaryColor : subsurfaceTheme.darkerPrimaryColor
|
||||
color: subsurfaceTheme.backgroundColor
|
||||
|
||||
Rectangle {
|
||||
width: 12
|
||||
height: 12
|
||||
x: 4
|
||||
y: 4
|
||||
radius: 3
|
||||
color: checkboxGPS.down ? subsurfaceTheme.PrimaryColor : subsurfaceTheme.darkerPrimaryColor
|
||||
visible: checkboxGPS.checked
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Kirigami.Label {
|
||||
|
|
Loading…
Add table
Reference in a new issue