From 4ca40bc15262193cec29f1aea02ac6964634b88c Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 30 Dec 2020 18:09:39 -0800 Subject: 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 --- mobile-widgets/qml/SsrfCheckBox.qml | 29 ----------------------------- 1 file changed, 29 deletions(-) delete mode 100644 mobile-widgets/qml/SsrfCheckBox.qml (limited to 'mobile-widgets/qml/SsrfCheckBox.qml') 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 - } - } -} -- cgit v1.2.3-70-g09d2