feat: add browser btn

This commit is contained in:
Jonathan Rainville 2020-05-08 17:16:08 -04:00
parent 966e665a9d
commit d09efbd397
1 changed files with 30 additions and 7 deletions

View File

@ -43,7 +43,7 @@ ApplicationWindow {
} }
TabButton { TabButton {
id: firstBtn id: chatBtn
x: 0 x: 0
width: 40 width: 40
height: 40 height: 40
@ -67,13 +67,13 @@ ApplicationWindow {
} }
TabButton { TabButton {
id: secondBtn id: walletBtn
width: 40 width: 40
height: 40 height: 40
text: "" text: ""
anchors.topMargin: 50 anchors.topMargin: 50
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.top: firstBtn.top anchors.top: chatBtn.top
background: Rectangle { background: Rectangle {
color: "#ECEFFC" color: "#ECEFFC"
opacity: parent.checked ? 1 : 0 opacity: parent.checked ? 1 : 0
@ -90,13 +90,13 @@ ApplicationWindow {
} }
TabButton { TabButton {
id: thirdBtn id: browserBtn
width: 40 width: 40
height: 40 height: 40
text: "" text: ""
anchors.topMargin: 50 anchors.topMargin: 50
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
anchors.top: secondBtn.top anchors.top: walletBtn.top
background: Rectangle { background: Rectangle {
color: "#ECEFFC" color: "#ECEFFC"
opacity: parent.checked ? 1 : 0 opacity: parent.checked ? 1 : 0
@ -108,6 +108,29 @@ ApplicationWindow {
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter anchors.horizontalCenter: parent.horizontalCenter
fillMode: Image.PreserveAspectFit fillMode: Image.PreserveAspectFit
source: parent.checked ? "img/compassActive.svg" : "img/compass.svg"
}
}
TabButton {
id: profileBtn
width: 40
height: 40
text: ""
anchors.topMargin: 50
anchors.horizontalCenter: parent.horizontalCenter
anchors.top: browserBtn.top
background: Rectangle {
color: "#ECEFFC"
opacity: parent.checked ? 1 : 0
radius: 50
}
Image {
id: image3
anchors.verticalCenter: parent.verticalCenter
anchors.horizontalCenter: parent.horizontalCenter
fillMode: Image.PreserveAspectFit
source: parent.checked ? "img/profileActive.svg" : "img/profile.svg" source: parent.checked ? "img/profileActive.svg" : "img/profile.svg"
} }
} }
@ -172,7 +195,7 @@ ApplicationWindow {
} }
Image { Image {
id: image3 id: image4
anchors.left: parent.left anchors.left: parent.left
anchors.leftMargin: 10 anchors.leftMargin: 10
anchors.verticalCenter: parent.verticalCenter anchors.verticalCenter: parent.verticalCenter
@ -269,6 +292,6 @@ ApplicationWindow {
/*##^## /*##^##
Designer { Designer {
D{i:9;anchors_height:40;anchors_width:40}D{i:16;anchors_y:0}D{i:20;anchors_height:100;anchors_width:100} D{i:9;anchors_height:40;anchors_width:40}D{i:19;anchors_y:0}D{i:23;anchors_height:100;anchors_width:100}
} }
##^##*/ ##^##*/