2017-07-24 18:19:34 +00:00
|
|
|
// SPDX-License-Identifier: GPL-2.0
|
2017-10-29 07:44:06 +00:00
|
|
|
import QtQuick 2.6
|
2017-07-24 18:19:34 +00:00
|
|
|
import QtQuick.Controls 2.2
|
2018-09-26 09:46:33 +00:00
|
|
|
import org.subsurfacedivelog.mobile 1.0
|
2018-09-27 20:09:26 +00:00
|
|
|
import org.kde.kirigami 2.4 as Kirigami
|
2017-07-24 18:19:34 +00:00
|
|
|
|
|
|
|
CheckBox {
|
|
|
|
id: root
|
|
|
|
indicator: Rectangle {
|
2018-09-26 09:46:33 +00:00
|
|
|
implicitWidth: 20 * PrefDisplay.mobile_scale
|
|
|
|
implicitHeight: 20 * PrefDisplay.mobile_scale
|
2017-07-24 18:19:34 +00:00
|
|
|
x: root.leftPadding
|
|
|
|
y: parent.height / 2 - height / 2
|
|
|
|
radius: 4
|
|
|
|
border.color: root.down ? subsurfaceTheme.darkerPrimaryColor : subsurfaceTheme.primaryColor
|
2018-03-19 18:53:02 +00:00
|
|
|
border.width: 2
|
|
|
|
color: subsurfaceTheme.backgroundColor
|
2017-07-24 18:19:34 +00:00
|
|
|
|
|
|
|
Rectangle {
|
2018-09-26 09:46:33 +00:00
|
|
|
width: 12 * PrefDisplay.mobile_scale
|
|
|
|
height: 12 * PrefDisplay.mobile_scale
|
|
|
|
x: (parent.width - width) / 2
|
|
|
|
y: (parent.height - height) / 2
|
2018-03-19 18:53:02 +00:00
|
|
|
radius: 3
|
2017-07-24 18:19:34 +00:00
|
|
|
color: root.down ? subsurfaceTheme.darkerPrimaryColor : subsurfaceTheme.primaryColor
|
2018-03-19 18:53:02 +00:00
|
|
|
visible: root.checked
|
2017-07-24 18:19:34 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|