Hanoi-Towers/source/base/BoseCheckBox.qml
2018-07-15 12:18:30 +03:00

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
}