diff options
author | Dirk Hohndel <dirk@hohndel.org> | 2020-12-30 18:09:39 -0800 |
---|---|---|
committer | Dirk Hohndel <dirk@hohndel.org> | 2021-01-01 11:35:39 -0800 |
commit | 4ca40bc15262193cec29f1aea02ac6964634b88c (patch) | |
tree | 342580d7a4d44c6567d1862c977e3f9ffe6798cd /mobile-widgets/qml/SsrfCheckBox.qml | |
parent | 765c4f9704e2b606a94fedff3e3fdf7deeefa2f6 (diff) | |
download | subsurface-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/SsrfCheckBox.qml')
-rw-r--r-- | mobile-widgets/qml/SsrfCheckBox.qml | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/mobile-widgets/qml/SsrfCheckBox.qml b/mobile-widgets/qml/SsrfCheckBox.qml deleted file mode 100644 index e110dc5f0..000000000 --- a/mobile-widgets/qml/SsrfCheckBox.qml +++ /dev/null @@ -1,29 +0,0 @@ -// SPDX-License-Identifier: GPL-2.0 -import QtQuick 2.6 -import QtQuick.Controls 2.2 -import org.subsurfacedivelog.mobile 1.0 -import org.kde.kirigami 2.4 as Kirigami - -CheckBox { - id: root - indicator: Rectangle { - implicitWidth: 20 * PrefDisplay.mobile_scale - implicitHeight: 20 * PrefDisplay.mobile_scale - x: root.leftPadding - y: parent.height / 2 - height / 2 - radius: 4 - border.color: root.down ? subsurfaceTheme.darkerPrimaryColor : subsurfaceTheme.primaryColor - border.width: 2 - color: subsurfaceTheme.backgroundColor - - Rectangle { - width: 12 * PrefDisplay.mobile_scale - height: 12 * PrefDisplay.mobile_scale - x: (parent.width - width) / 2 - y: (parent.height - height) / 2 - radius: 3 - color: root.down ? subsurfaceTheme.darkerPrimaryColor : subsurfaceTheme.primaryColor - visible: root.checked - } - } -} |