diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/qml/AbstractButton.qml | 1 | ||||
-rw-r--r-- | framework/qml/DelegateBackground.qml | 6 |
2 files changed, 5 insertions, 2 deletions
diff --git a/framework/qml/AbstractButton.qml b/framework/qml/AbstractButton.qml index 6738fc63..a5ec4650 100644 --- a/framework/qml/AbstractButton.qml +++ b/framework/qml/AbstractButton.qml | |||
@@ -30,6 +30,7 @@ T.Button { | |||
30 | property alias highlightOpacity: background.highlightOpacity | 30 | property alias highlightOpacity: background.highlightOpacity |
31 | property alias horizontalAlignment: label.horizontalAlignment | 31 | property alias horizontalAlignment: label.horizontalAlignment |
32 | property alias verticalAlignment: label.verticalAlignment | 32 | property alias verticalAlignment: label.verticalAlignment |
33 | property alias alert: background.alert | ||
33 | 34 | ||
34 | width: Math.max(Units.gridUnit, contentItem.implicitWidth + leftPadding + rightPadding) | 35 | width: Math.max(Units.gridUnit, contentItem.implicitWidth + leftPadding + rightPadding) |
35 | height: contentItem.implicitHeight + topPadding + bottomPadding | 36 | height: contentItem.implicitHeight + topPadding + bottomPadding |
diff --git a/framework/qml/DelegateBackground.qml b/framework/qml/DelegateBackground.qml index 4059d69a..f725352a 100644 --- a/framework/qml/DelegateBackground.qml +++ b/framework/qml/DelegateBackground.qml | |||
@@ -24,9 +24,11 @@ Rectangle { | |||
24 | id: root | 24 | id: root |
25 | property bool focused: false | 25 | property bool focused: false |
26 | property bool selected: false | 26 | property bool selected: false |
27 | property bool alert: false | ||
27 | property color highlightColor: Kube.Colors.highlightColor | 28 | property color highlightColor: Kube.Colors.highlightColor |
28 | property alias highlightOpacity: highlight.opacity | 29 | property alias highlightOpacity: highlight.opacity |
29 | property color borderColor: Kube.Colors.focusedButtonColor | 30 | property color borderColor: Kube.Colors.focusedButtonColor |
31 | property color alertColor: Kube.Colors.warningColor | ||
30 | 32 | ||
31 | Rectangle { | 33 | Rectangle { |
32 | anchors.fill: parent | 34 | anchors.fill: parent |
@@ -42,8 +44,8 @@ Rectangle { | |||
42 | } | 44 | } |
43 | Rectangle { | 45 | Rectangle { |
44 | anchors.fill: parent | 46 | anchors.fill: parent |
45 | visible: root.focused && root.selected | 47 | visible: root.focused && root.selected || root.alert |
46 | border.color: root.borderColor | 48 | border.color: root.alert ? root.alertColor : root.borderColor |
47 | border.width: 2 | 49 | border.width: 2 |
48 | color: "transparent" | 50 | color: "transparent" |
49 | } | 51 | } |