diff options
Diffstat (limited to 'desktop/Button.qml')
| -rw-r--r-- | desktop/Button.qml | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/desktop/Button.qml b/desktop/Button.qml index d6ca78f..3e0d63f 100644 --- a/desktop/Button.qml +++ b/desktop/Button.qml @@ -22,7 +22,9 @@ Rectangle { implicitHeight: label.implicitHeight + 12 radius: 7 opacity: enabled ? 1 : 0.4 - color: area.containsMouse && enabled + color: area.pressed && enabled + ? (danger ? Theme.red : Theme.accent) + : area.containsMouse && enabled ? Qt.alpha(danger ? Theme.red : Theme.accent, 0.25) : Qt.alpha(Theme.surface, 0.8) border.width: 1 @@ -32,7 +34,8 @@ Rectangle { id: label anchors.centerIn: parent font { family: Theme.fontFamily; pixelSize: Theme.fontSize - 2 } - color: danger ? Theme.red : Theme.text + color: (area.pressed && btn.enabled) ? Theme.base + : danger ? Theme.red : Theme.text } MouseArea { |
