mirror of
https://github.com/QuasarApp/Hanoi-Towers.git
synced 2025-04-26 17:54:31 +00:00
24 lines
561 B
QML
24 lines
561 B
QML
import QtQuick 2.9
|
|
import QtQuick.Controls 2.2
|
|
|
|
CheckBox {
|
|
Theme{
|
|
id: theme;
|
|
}
|
|
contentItem: Text {
|
|
text: parent.text
|
|
font.pixelSize: parent.height * 0.8
|
|
opacity: enabled ? 1.0 : 0.3
|
|
color: parent.down ? theme.buttonsTextColor : theme.buttonsTextColorPresed
|
|
horizontalAlignment: Text.AlignHCenter
|
|
verticalAlignment: Text.AlignVCenter
|
|
elide: Text.ElideRight
|
|
}
|
|
|
|
indicator.height: height
|
|
indicator.width: height
|
|
|
|
width: theme.buttonsWidth
|
|
height: theme.buttonsHeight
|
|
}
|