summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Bohlender <michael.bohlender@kdemail.net>2018-01-04 13:47:58 +0100
committerMichael Bohlender <michael.bohlender@kdemail.net>2018-01-04 13:47:58 +0100
commit6ba2b8fa9342221ebbd64997e9bca0e959c0f4fe (patch)
tree2c2d47c5d853322afdfc46d30ea50064ccaa6b6a
parentd1203ff9cfa30fd8b1251e4c6a5b0b1716cf0bc6 (diff)
downloadkube-6ba2b8fa9342221ebbd64997e9bca0e959c0f4fe.tar.gz
kube-6ba2b8fa9342221ebbd64997e9bca0e959c0f4fe.zip
posivite button: visualize disabled state
-rw-r--r--framework/qml/PositiveButton.qml10
1 files changed, 9 insertions, 1 deletions
diff --git a/framework/qml/PositiveButton.qml b/framework/qml/PositiveButton.qml
index f158ad10..2f71131b 100644
--- a/framework/qml/PositiveButton.qml
+++ b/framework/qml/PositiveButton.qml
@@ -16,11 +16,19 @@
16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 16 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
17 */ 17 */
18 18
19import QtQuick 2.0
19import org.kube.framework 1.0 20import org.kube.framework 1.0
20 21
21AbstractButton { 22AbstractButton {
22 color: Colors.positiveColor 23 color: enabled ? Colors.positiveColor : Colors.backgroundColor
23 textColor: Colors.highlightedTextColor 24 textColor: Colors.highlightedTextColor
24 highlightColor: Colors.viewBackgroundColor 25 highlightColor: Colors.viewBackgroundColor
25 highlightOpacity: 0.2 26 highlightOpacity: 0.2
27
28 Rectangle {
29 anchors.fill: parent
30 color: "transparent"
31 border.width: 1
32 border.color: Kube.Colors.buttonColor
33 }
26} 34}