mirror of
https://github.com/nomic-ai/gpt4all
synced 2024-11-02 09:40:42 +00:00
39 lines
872 B
QML
39 lines
872 B
QML
|
import QtCore
|
||
|
import QtQuick
|
||
|
import QtQuick.Controls
|
||
|
import QtQuick.Controls.Basic
|
||
|
|
||
|
CheckBox {
|
||
|
id: myCheckBox
|
||
|
|
||
|
background: Rectangle {
|
||
|
color: "transparent"
|
||
|
}
|
||
|
|
||
|
indicator: Rectangle {
|
||
|
implicitWidth: 26
|
||
|
implicitHeight: 26
|
||
|
x: saveChatsBox.leftPadding
|
||
|
y: parent.height / 2 - height / 2
|
||
|
border.color: theme.dialogBorder
|
||
|
color: "transparent"
|
||
|
|
||
|
Rectangle {
|
||
|
width: 14
|
||
|
height: 14
|
||
|
x: 6
|
||
|
y: 6
|
||
|
color: theme.textColor
|
||
|
visible: myCheckBox.checked
|
||
|
}
|
||
|
}
|
||
|
|
||
|
contentItem: Text {
|
||
|
text: myCheckBox.text
|
||
|
font: myCheckBox.font
|
||
|
opacity: enabled ? 1.0 : 0.3
|
||
|
color: theme.textColor
|
||
|
verticalAlignment: Text.AlignVCenter
|
||
|
leftPadding: myCheckBox.indicator.width + myCheckBox.spacing
|
||
|
}
|
||
|
}
|