Solved Issue #318 and added states to back button

parent 05f28088
...@@ -129,7 +129,7 @@ Rectangle { ...@@ -129,7 +129,7 @@ Rectangle {
Button { Button {
id: back id: back
z: 30
onClicked: { onClicked: {
webview.goBack() webview.goBack()
} }
...@@ -141,7 +141,9 @@ Rectangle { ...@@ -141,7 +141,9 @@ Rectangle {
style: ButtonStyle { style: ButtonStyle {
background: Image { background: Image {
source: "../../backButton.png" source: (webview.canGoBack) ?
(control.hovered ? "../../backButtonHover.png" : "../../backButton.png") :
"../../backButtonDisabled.png"
width: 20 width: 20
height: 30 height: 30
} }
...@@ -153,7 +155,7 @@ Rectangle { ...@@ -153,7 +155,7 @@ Rectangle {
height: 28 height: 28
color: "#FFFFFF" color: "#FFFFFF"
radius: 6 radius: 6
z:2
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
z: 10 z: 10
...@@ -247,7 +249,7 @@ Rectangle { ...@@ -247,7 +249,7 @@ Rectangle {
} }
} }
z:2
} }
Rectangle { Rectangle {
...@@ -256,6 +258,7 @@ Rectangle { ...@@ -256,6 +258,7 @@ Rectangle {
height: 30 height: 30
color: "#BDB6B6" color: "#BDB6B6"
radius: 6 radius: 6
z:1
anchors { anchors {
left: back.right left: back.right
...@@ -265,18 +268,16 @@ Rectangle { ...@@ -265,18 +268,16 @@ Rectangle {
top: parent.top top: parent.top
topMargin: 23 topMargin: 23
} }
z:1
} }
Rectangle { Rectangle {
id: navBarBackground id: navBarBackground
anchors.fill: parent anchors.fill: parent
z:-1
gradient: Gradient { gradient: Gradient {
GradientStop { position: 0.0; color: "#F6F1F2" } GradientStop { position: 0.0; color: "#F6F1F2" }
GradientStop { position: 1.0; color: "#DED5D5" } GradientStop { position: 1.0; color: "#DED5D5" }
} }
z:-1
} }
states: [ states: [
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment