not opening new tabs?

This commit is contained in:
Alexandre Van de Sande 2015-02-02 18:17:44 -02:00
parent 97c42a311b
commit 6cd6a44f08
2 changed files with 60 additions and 135 deletions

View file

@ -44,7 +44,7 @@ ApplicationWindow {
addPlugin("./views/info.qml", {noAdd: true, close: false, section: "legacy"}); addPlugin("./views/info.qml", {noAdd: true, close: false, section: "legacy"});
mainSplit.setView(wallet.view, wallet.menuItem); mainSplit.setView(wallet.view, wallet.menuItem);
s
newBrowserTab("http://etherian.io"); newBrowserTab("http://etherian.io");
// Command setup // Command setup
@ -360,24 +360,10 @@ s
********************/ ********************/
Rectangle { Rectangle {
id: menu id: menu
Layout.minimumWidth: 192 Layout.minimumWidth: 210
Layout.maximumWidth: 192 Layout.maximumWidth: 210
anchors.top: parent.top anchors.top: parent.top
//color: "#FAF5F5" color: "#ececec"
Rectangle {
width: parent.height
height: parent.width
anchors.centerIn: parent
rotation: 90
gradient: Gradient {
GradientStop { position: 0.0; color: "#F1ECEC" }
GradientStop { position: 0.2; color: "#FAF5F5" }
GradientStop { position: 1.0; color: "#FAF5F5" }
}
}
Component { Component {
id: menuItemTemplate id: menuItemTemplate
@ -394,8 +380,8 @@ s
sel.visible = on sel.visible = on
} }
width: 192 width: 206
height: 55 height: 28
color: "#00000000" color: "#00000000"
anchors { anchors {
@ -404,7 +390,6 @@ s
} }
Rectangle { Rectangle {
// This is the selection rectangle
id: sel id: sel
visible: false visible: false
anchors.fill: parent anchors.fill: parent
@ -412,10 +397,10 @@ s
Rectangle { Rectangle {
id: r id: r
anchors.fill: parent anchors.fill: parent
border.width: 0 border.color: "#CCCCCC"
border.width: 1
radius: 5 radius: 5
color: "#FFFFFFFF" color: "#FFFFFFFF"
// Background of selected tab
} }
Rectangle { Rectangle {
anchors { anchors {
@ -425,29 +410,25 @@ s
} }
width: 10 width: 10
color: "#FFFFFFFF" color: "#FFFFFFFF"
border.width:0
//Little tiny rectangle to the right of selection. Not sure what's for
Rectangle { Rectangle {
// Small line on top of selection. What's this for?
anchors { anchors {
left: parent.left left: parent.left
right: parent.right right: parent.right
top: parent.top top: parent.top
} }
height: 1 height: 1
color: "#FFFFFFFF" color: "#CCCCCC"
} }
Rectangle { Rectangle {
// Small line on bottom of selection. What's this for again?
anchors { anchors {
left: parent.left left: parent.left
right: parent.right right: parent.right
bottom: parent.bottom bottom: parent.bottom
} }
height: 1 height: 1
color: "#FFFFFFFF" color: "#CCCCCC"
} }
} }
} }
@ -460,14 +441,13 @@ s
} }
Image { Image {
// Icon
id: icon id: icon
height: 24 height: 20
width: 24 width: 20
anchors { anchors {
left: parent.left left: parent.left
verticalCenter: parent.verticalCenter verticalCenter: parent.verticalCenter
leftMargin: 6 leftMargin: 3
} }
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
@ -478,27 +458,25 @@ s
} }
Text { Text {
// Main Text
id: label id: label
anchors { anchors {
left: icon.right left: icon.right
verticalCenter: parent.verticalCenter verticalCenter: parent.verticalCenter
leftMargin: 6 leftMargin: 3
} }
color: "#665F5F" color: "#0D0A01"
font.pixelSize: 14 font.pixelSize: 12
} }
Text { Text {
// Auxiliary Text
id: secondary id: secondary
anchors { anchors {
right: parent.right right: parent.right
rightMargin: 8 rightMargin: 8
verticalCenter: parent.verticalCenter verticalCenter: parent.verticalCenter
} }
color: "#6691C2" color: "#AEADBE"
font.pixelSize: 12 font.pixelSize: 12
} }
@ -563,45 +541,14 @@ s
anchors.right: parent.right anchors.right: parent.right
spacing: 3 spacing: 3
Rectangle {
// New App Button
id: newAppButton
anchors {
left: parent.left
leftMargin: 6
}
border.width: 0
radius: 5
height: 56
width: 180
color: "#F6EEEE"
Text {
text: "GO TO NEW APP"
font.bold: true
anchors.horizontalCenter: parent.horizontalCenter
anchors.verticalCenter: parent.verticalCenter
color: "#AAA0A0"
}
}
Rectangle {
// Ethereum Title
anchors {
left: parent.left
leftMargin: 6
}
border.width: 0
height: 56
width: 180
color: "#00000000"
Text { Text {
text: "ETHEREUM" text: "ETHEREUM"
font.bold: true font.bold: true
anchors.verticalCenter: parent.verticalCenter anchors {
color: "#AAA0A0" left: parent.left
leftMargin: 5
} }
color: "#888888"
} }
ColumnLayout { ColumnLayout {
@ -614,23 +561,14 @@ s
} }
Text {
Rectangle { text: "NET"
// Apps font.bold: true
anchors { anchors {
left: parent.left left: parent.left
leftMargin: 6 leftMargin: 5
}
border.width: 0
height: 56
width: 180
color: "#00000000"
Text {
text: "APPS"
font.bold: true
anchors.verticalCenter: parent.verticalCenter
color: "#AAA0A0"
} }
color: "#888888"
} }
ColumnLayout { ColumnLayout {
@ -639,28 +577,17 @@ s
anchors { anchors {
left: parent.left left: parent.left
right: parent.right right: parent.right
bottomMargin: 18
} }
} }
Rectangle {
// Debug
anchors {
left: parent.left
leftMargin: 6
}
border.width: 0
height: 56
width: 180
color: "#00000000"
Text { Text {
text: "DEBUG" text: "DEBUG"
font.bold: true font.bold: true
anchors.verticalCenter: parent.verticalCenter anchors {
color: "#AAA0A0" left: parent.left
leftMargin: 5
} }
color: "#888888"
} }
ColumnLayout { ColumnLayout {
@ -671,7 +598,6 @@ s
right: parent.right right: parent.right
} }
} }
} }
} }
@ -684,28 +610,24 @@ s
anchors.left: menu.right anchors.left: menu.right
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.top: parent.top anchors.top: parent.top
anchors.topMargin: 50 color: "#00000000"
anchors.bottomMargin: 50
color: "#FF00FF" //magenta
// This is the background of the URL bar
Rectangle { Rectangle {
id: urlPane id: urlPane
height: 40
anchors.right: parent.right color: "#00000000"
anchors.left: parent.left anchors {
anchors.bottom: parent.bottom left: parent.left
anchors.top: parent.top right: parent.right
anchors.topMargin: 50 leftMargin: 5
anchors.bottomMargin: 50 rightMargin: 5
height: 10 top: parent.top
color: "#00FFFF" //cyan topMargin: 5
}
TextField { TextField {
id: url id: url
objectName: "url" objectName: "url"
placeholderText: "DApp URL" placeholderText: "DApp URL"
anchors { anchors {
left: parent.left left: parent.left
right: parent.right right: parent.right
@ -726,7 +648,7 @@ s
} }
// Invisible divider between url bar and main view // Border
Rectangle { Rectangle {
id: divider id: divider
anchors { anchors {
@ -734,19 +656,18 @@ s
right: parent.right right: parent.right
top: urlPane.bottom top: urlPane.bottom
} }
height: 10 z: -1
color: "#FFFF00" //yellow height: 1
color: "#CCCCCC"
} }
Rectangle { Rectangle {
id: mainView id: mainView
color: "#0000FF" //dark blue color: "#00000000"
anchors.right: parent.right anchors.right: parent.right
anchors.left: parent.left anchors.left: parent.left
anchors.bottom: parent.bottom anchors.bottom: parent.bottom
anchors.top: divider.top anchors.top: divider.bottom
anchors.topMargin: 100
anchors.bottomMargin: 100
function createView(component) { function createView(component) {
var view = component.createObject(mainView) var view = component.createObject(mainView)
@ -754,7 +675,6 @@ s
return view; return view;
} }
} }
} }
} }

View file

@ -73,12 +73,17 @@ Rectangle {
RowLayout { RowLayout {
id: navBar id: navBar
height: 40 height: 74
anchors { anchors {
left: parent.left left: parent.left
right: parent.right right: parent.right
leftMargin: 7 leftMargin: 7
} }
gradient: Gradient {
GradientStop { position: 0.0; color: "#F1ECEC" }
GradientStop { position: 0.2; color: "#FAF5F5" }
GradientStop { position: 1.0; color: "#FAF5F5" }
}
Button { Button {
id: back id: back