ColorTypeButtons {
id: buttons;
- visible: showButtons && baseStateFlag
+ visible: showButtons
+ enabled: baseStateFlag
+ opacity: enabled ? 1 : 0.6
showGradientButton: colorGroupBox.showGradientButton
}
QWidget {
- visible: !(showButtons && baseStateFlag)
+ visible: !(showButtons)
fixedHeight: 28
fixedWidth: 93
width: fixedWidth
styleSheetFile: "styledbuttonleft.css"
iconFromFile: "images/icon_color_solid.png"
- toolTip: qsTr("Solid color")
+ toolTip: baseStateFlag ? qsTr("Solid color") : qsTr("Solid color (only editable in base state)")
onToggled: {
if (checked) {
styleSheetFile: "styledbuttonmiddle.css"
iconFromFile: "images/icon_color_gradient.png"
- toolTip: qsTr("Gradient")
+ toolTip: baseStateFlag ? qsTr("Gradient") : qsTr("Gradient (only editable in base state)")
onToggled: {
if (checked) {
fixedHeight: 28
styleSheetFile: "styledbuttonright.css"
iconFromFile: "images/icon_color_none.png"
- toolTip: qsTr("Transparent")
+ toolTip: baseStateFlag ? qsTr("Transparent") : qsTr("Transparent (only editable in base state)")
onToggled: {
if (checked) {
rightMargin: 24
IntEditor {
- visible: colorsBox.hasBorder
+ enabled: colorsBox.hasBorder
+ opacity: enabled ? 1 : 0.6
+ toolTip: enabled ? qsTr("Border width") : qsTr("Border has to be solid to change width")
id: borderWidth;
backendValue: backendValues.border_width === undefined ? 0 : backendValues.border_width