25 lines
633 B
QML
25 lines
633 B
QML
|
|
import QtQuick
|
|||
|
|
import QtQuick.Controls.Styles
|
|||
|
|
import "../common"
|
|||
|
|
import "../resource"
|
|||
|
|
CheckBoxStyle {
|
|||
|
|
indicator: Rectangle {
|
|||
|
|
implicitWidth: 16
|
|||
|
|
implicitHeight: 16
|
|||
|
|
radius: 3
|
|||
|
|
border.color: control.activeFocus ? "darkblue" : "gray"
|
|||
|
|
border.width: 1
|
|||
|
|
Rectangle {
|
|||
|
|
visible: control.checked
|
|||
|
|
color: "#555"
|
|||
|
|
border.color: "#333"
|
|||
|
|
radius: 1
|
|||
|
|
anchors.margins: 4
|
|||
|
|
anchors.fill: parent
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
label: QxText{
|
|||
|
|
text: control.text.indexOf("_") > -1 ? control.text.match(/(.*)(?=_)/)[1] : control.text
|
|||
|
|
}
|
|||
|
|
}
|