aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/mist/assets/qml
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2015-01-19 18:23:17 +0800
committerobscuren <geffobscura@gmail.com>2015-01-19 18:23:17 +0800
commitf34838688ebd1c775a3b700824e0c6c2e98e5018 (patch)
treede0b0de346a6fdb8672cfaa4d49d2404d547499e /cmd/mist/assets/qml
parentbcb1166e524c3fb1fad66af8ddd4bf3a4161a7dc (diff)
downloadgo-tangerine-f34838688ebd1c775a3b700824e0c6c2e98e5018.tar
go-tangerine-f34838688ebd1c775a3b700824e0c6c2e98e5018.tar.gz
go-tangerine-f34838688ebd1c775a3b700824e0c6c2e98e5018.tar.bz2
go-tangerine-f34838688ebd1c775a3b700824e0c6c2e98e5018.tar.lz
go-tangerine-f34838688ebd1c775a3b700824e0c6c2e98e5018.tar.xz
go-tangerine-f34838688ebd1c775a3b700824e0c6c2e98e5018.tar.zst
go-tangerine-f34838688ebd1c775a3b700824e0c6c2e98e5018.zip
Minor browser improvements
Diffstat (limited to 'cmd/mist/assets/qml')
-rw-r--r--cmd/mist/assets/qml/browser.qml23
-rw-r--r--cmd/mist/assets/qml/main.qml9
2 files changed, 28 insertions, 4 deletions
diff --git a/cmd/mist/assets/qml/browser.qml b/cmd/mist/assets/qml/browser.qml
index 7f0417d46..9cf1fe8be 100644
--- a/cmd/mist/assets/qml/browser.qml
+++ b/cmd/mist/assets/qml/browser.qml
@@ -9,6 +9,10 @@ import Ethereum 1.0
Rectangle {
id: window
+ objectName: "browserView"
+ anchors.fill: parent
+ color: "#00000000"
+
property var title: "Browser"
property var iconSource: "../browser.png"
property var menuItem
@@ -106,10 +110,9 @@ Rectangle {
anchors {
left: back.right
right: toggleInspector.left
- leftMargin: 5
- rightMargin: 5
+ leftMargin: 10
+ rightMargin: 10
}
- //text: "http://etherian.io"
text: webview.url;
id: uriNav
y: parent.height / 2 - this.height / 2
@@ -136,6 +139,18 @@ Rectangle {
}
}
+ // Border
+ Rectangle {
+ id: divider
+ anchors {
+ left: parent.left
+ right: parent.right
+ top: navBar.bottom
+ }
+ z: -1
+ height: 1
+ color: "#CCCCCC"
+ }
WebView {
objectName: "webView"
@@ -144,7 +159,7 @@ Rectangle {
left: parent.left
right: parent.right
bottom: parent.bottom
- top: navBar.bottom
+ top: divider.bottom
}
//property var cleanPath: false
diff --git a/cmd/mist/assets/qml/main.qml b/cmd/mist/assets/qml/main.qml
index e287e384f..3fee479a0 100644
--- a/cmd/mist/assets/qml/main.qml
+++ b/cmd/mist/assets/qml/main.qml
@@ -446,6 +446,14 @@ ApplicationWindow {
anchors.fill: parent
onClicked: {
mainSplit.setView(view, menuItem)
+ console.log(view);
+ if (view.objectName === "browserView") {
+ urlPane.visible = false;
+ mainView.anchors.top = rootView.top
+ } else {
+ urlPane.visible = true;
+ mainView.anchors.top = divider.bottom
+ }
}
}
@@ -606,6 +614,7 @@ ApplicationWindow {
* Main view
********************/
Rectangle {
+ id: rootView
anchors.right: parent.right
anchors.left: menu.right
anchors.bottom: parent.bottom