From 4c4b72853cf08751515ffc4ff858c365c5db2cfd Mon Sep 17 00:00:00 2001 From: Joakim Bygdell Date: Sat, 8 Jul 2017 18:59:48 +0200 Subject: QML UI: Style the BT download checkbox Style the checkbox to the themes primary color Signed-off-by: Joakim Bygdell --- mobile-widgets/qml/DownloadFromDiveComputer.qml | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/mobile-widgets/qml/DownloadFromDiveComputer.qml b/mobile-widgets/qml/DownloadFromDiveComputer.qml index 574cc95af..d9dc46eb4 100644 --- a/mobile-widgets/qml/DownloadFromDiveComputer.qml +++ b/mobile-widgets/qml/DownloadFromDiveComputer.qml @@ -1,6 +1,6 @@ // SPDX-License-Identifier: GPL-2.0 import QtQuick 2.6 -import QtQuick.Controls 2.0 +import QtQuick.Controls 2.2 import QtQuick.Window 2.2 import QtQuick.Dialogs 1.2 import QtQuick.Layouts 1.3 @@ -82,6 +82,25 @@ Kirigami.Page { CheckBox { id: isBluetooth checked: downloadThread.data().getDetectedVendorIndex(ComboBox.currentText) != -1 + indicator: Rectangle { + implicitWidth: 20 + implicitHeight: 20 + x: isBluetooth.leftPadding + y: parent.height / 2 - height / 2 + radius: 4 + border.color: isBluetooth.down ? subsurfaceTheme.PrimaryColor : subsurfaceTheme.darkerPrimaryColor + color: subsurfaceTheme.backgroundColor + + Rectangle { + width: 12 + height: 12 + x: 4 + y: 4 + radius: 3 + color: isBluetooth.down ? subsurfaceTheme.PrimaryColor : subsurfaceTheme.darkerPrimaryColor + visible: isBluetooth.checked + } + } } } -- cgit v1.2.3-70-g09d2