mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
QML UI: Style the BT download checkbox
Style the checkbox to the themes primary color Signed-off-by: Joakim Bygdell <j.bygdell@gmail.com>
This commit is contained in:
parent
aa5060669c
commit
4c4b72853c
1 changed files with 20 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
||||||
// SPDX-License-Identifier: GPL-2.0
|
// SPDX-License-Identifier: GPL-2.0
|
||||||
import QtQuick 2.6
|
import QtQuick 2.6
|
||||||
import QtQuick.Controls 2.0
|
import QtQuick.Controls 2.2
|
||||||
import QtQuick.Window 2.2
|
import QtQuick.Window 2.2
|
||||||
import QtQuick.Dialogs 1.2
|
import QtQuick.Dialogs 1.2
|
||||||
import QtQuick.Layouts 1.3
|
import QtQuick.Layouts 1.3
|
||||||
|
|
@ -82,6 +82,25 @@ Kirigami.Page {
|
||||||
CheckBox {
|
CheckBox {
|
||||||
id: isBluetooth
|
id: isBluetooth
|
||||||
checked: downloadThread.data().getDetectedVendorIndex(ComboBox.currentText) != -1
|
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
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue