aboutsummaryrefslogtreecommitdiff
path: root/components/StandardButton.qml
diff options
context:
space:
mode:
authormarcin <z.krzysztoff7@gmail.com>2014-07-09 17:44:13 +0200
committermarcin <z.krzysztoff7@gmail.com>2014-07-09 17:44:13 +0200
commit692b8532d7e9a0565c46df9328ab303a293ba1bc (patch)
tree6ba8da0a78e3793c00e289fb066319059831449f /components/StandardButton.qml
parent92c594ca8cefa8ba59dcad1e3f5df170d1880ba0 (diff)
downloadmonzero-gui-692b8532d7e9a0565c46df9328ab303a293ba1bc.tar.gz
monzero-gui-692b8532d7e9a0565c46df9328ab303a293ba1bc.tar.xz
monzero-gui-692b8532d7e9a0565c46df9328ab303a293ba1bc.zip
fixes
Diffstat (limited to 'components/StandardButton.qml')
-rw-r--r--components/StandardButton.qml12
1 files changed, 8 insertions, 4 deletions
diff --git a/components/StandardButton.qml b/components/StandardButton.qml
index 0eeb5c2b..28bee9be 100644
--- a/components/StandardButton.qml
+++ b/components/StandardButton.qml
@@ -2,7 +2,8 @@ import QtQuick 2.0
Item {
height: 37
- property string shadowColor
+ property string shadowPressedColor
+ property string shadowReleasedColor
property string pressedColor
property string releasedColor
property string icon: ""
@@ -14,16 +15,16 @@ Item {
anchors.left: parent.left
anchors.right: parent.right
height: parent.height - 1
- y: buttonArea.pressed ? 1 : 0
+ y: buttonArea.pressed ? 0 : 1
radius: 4
- color: parent.shadowColor
+ color: buttonArea.pressed ? parent.shadowPressedColor : parent.shadowReleasedColor
}
Rectangle {
anchors.left: parent.left
anchors.right: parent.right
height: parent.height - 1
- y: buttonArea.pressed ? 0 : 1
+ y: buttonArea.pressed ? 1 : 0
color: buttonArea.pressed ? parent.pressedColor : parent.releasedColor
radius: 4
}
@@ -35,6 +36,9 @@ Item {
anchors.right: parent.right
horizontalAlignment: Text.AlignHCenter
elide: Text.ElideRight
+ font.family: "Arial"
+ font.bold: true
+ font.letterSpacing: -1
font.pixelSize: 12
color: parent.textColor
visible: parent.icon === ""