diff --git a/declarativeimports/plasmacomponents/Button.qml b/declarativeimports/plasmacomponents/Button.qml index 2f85447d0..48bb71791 100644 --- a/declarativeimports/plasmacomponents/Button.qml +++ b/declarativeimports/plasmacomponents/Button.qml @@ -60,7 +60,9 @@ Item { width: 50 height: 20 - opacity: enabled ? 1.0 : 0.5 // XXX: temporary solution + // TODO: needs to define if there will be specific graphics for + // disabled buttons + opacity: enabled ? 1.0 : 0.5 Keys.onSpacePressed: pressButton(); Keys.onReturnPressed: pressButton(); diff --git a/declarativeimports/plasmacomponents/DualStateButton.qml b/declarativeimports/plasmacomponents/DualStateButton.qml index 968c5cb48..c8613fea2 100644 --- a/declarativeimports/plasmacomponents/DualStateButton.qml +++ b/declarativeimports/plasmacomponents/DualStateButton.qml @@ -36,7 +36,9 @@ Item { width: surface.width + label.paintedWidth height: surface.height - opacity: dualButton.enabled ? 1.0 : 0.5 // XXX: temporary solution + // TODO: needs to define if there will be specific graphics for + // disabled buttons + opacity: dualButton.enabled ? 1.0 : 0.5 function entered() { if (dualButton.enabled) {