diff options
author | Alexandre Van de Sande <alex.vandesande@ethdev.com> | 2015-02-16 21:34:47 +0800 |
---|---|---|
committer | Alexandre Van de Sande <alex.vandesande@ethdev.com> | 2015-02-16 21:34:47 +0800 |
commit | 1878630b591b039fadb6f88e15340d04f4af3ed1 (patch) | |
tree | 987e1c72d304dad4b36019a903d344006dc90ee5 /cmd | |
parent | 05f28088499fdc0105bb17cee9345a3483aa24f2 (diff) | |
download | dexon-1878630b591b039fadb6f88e15340d04f4af3ed1.tar dexon-1878630b591b039fadb6f88e15340d04f4af3ed1.tar.gz dexon-1878630b591b039fadb6f88e15340d04f4af3ed1.tar.bz2 dexon-1878630b591b039fadb6f88e15340d04f4af3ed1.tar.lz dexon-1878630b591b039fadb6f88e15340d04f4af3ed1.tar.xz dexon-1878630b591b039fadb6f88e15340d04f4af3ed1.tar.zst dexon-1878630b591b039fadb6f88e15340d04f4af3ed1.zip |
Solved Issue #318 and added states to back button
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/mist/assets/backButtonDisabled.png | bin | 0 -> 634 bytes | |||
-rw-r--r-- | cmd/mist/assets/backButtonDisabled@2x.png | bin | 0 -> 1458 bytes | |||
-rw-r--r-- | cmd/mist/assets/backButtonHover.png | bin | 0 -> 657 bytes | |||
-rw-r--r-- | cmd/mist/assets/backButtonHover@2x.png | bin | 0 -> 1517 bytes | |||
-rw-r--r-- | cmd/mist/assets/qml/main.qml | 2 | ||||
-rw-r--r-- | cmd/mist/assets/qml/views/browser.qml | 39 |
6 files changed, 21 insertions, 20 deletions
diff --git a/cmd/mist/assets/backButtonDisabled.png b/cmd/mist/assets/backButtonDisabled.png Binary files differnew file mode 100644 index 000000000..428747870 --- /dev/null +++ b/cmd/mist/assets/backButtonDisabled.png diff --git a/cmd/mist/assets/backButtonDisabled@2x.png b/cmd/mist/assets/backButtonDisabled@2x.png Binary files differnew file mode 100644 index 000000000..0eaa6daa5 --- /dev/null +++ b/cmd/mist/assets/backButtonDisabled@2x.png diff --git a/cmd/mist/assets/backButtonHover.png b/cmd/mist/assets/backButtonHover.png Binary files differnew file mode 100644 index 000000000..8c5226f5a --- /dev/null +++ b/cmd/mist/assets/backButtonHover.png diff --git a/cmd/mist/assets/backButtonHover@2x.png b/cmd/mist/assets/backButtonHover@2x.png Binary files differnew file mode 100644 index 000000000..406601ebc --- /dev/null +++ b/cmd/mist/assets/backButtonHover@2x.png diff --git a/cmd/mist/assets/qml/main.qml b/cmd/mist/assets/qml/main.qml index c9505806c..1272f8761 100644 --- a/cmd/mist/assets/qml/main.qml +++ b/cmd/mist/assets/qml/main.qml @@ -485,7 +485,7 @@ ApplicationWindow { label.visible = !on buttonLabel.visible = on } - + width: 192 height: 55 color: "#00000000" diff --git a/cmd/mist/assets/qml/views/browser.qml b/cmd/mist/assets/qml/views/browser.qml index a6f4e3d92..3a35c2a65 100644 --- a/cmd/mist/assets/qml/views/browser.qml +++ b/cmd/mist/assets/qml/views/browser.qml @@ -129,9 +129,9 @@ Rectangle { Button { id: back - - onClicked: { - webview.goBack() + z: 30 + onClicked: { + webview.goBack() } anchors { @@ -140,21 +140,23 @@ Rectangle { } style: ButtonStyle { - background: Image { - source: "../../backButton.png" - width: 20 - height: 30 - } + background: Image { + source: (webview.canGoBack) ? + (control.hovered ? "../../backButtonHover.png" : "../../backButton.png") : + "../../backButtonDisabled.png" + width: 20 + height: 30 + } } } Rectangle { - id: appInfoPane - height: 28 - color: "#FFFFFF" - radius: 6 - - MouseArea { + id: appInfoPane + height: 28 + color: "#FFFFFF" + radius: 6 + z:2 + MouseArea { anchors.fill: parent z: 10 hoverEnabled: true @@ -247,7 +249,7 @@ Rectangle { } } - z:2 + } Rectangle { @@ -256,6 +258,7 @@ Rectangle { height: 30 color: "#BDB6B6" radius: 6 + z:1 anchors { left: back.right @@ -264,19 +267,17 @@ Rectangle { rightMargin:10 top: parent.top topMargin: 23 - } - - z:1 + } } Rectangle { id: navBarBackground anchors.fill: parent + z:-1 gradient: Gradient { GradientStop { position: 0.0; color: "#F6F1F2" } GradientStop { position: 1.0; color: "#DED5D5" } } - z:-1 } states: [ |