Improved on some ui elements
This commit is contained in:
parent
68f4a12a8b
commit
10e2c40b59
@ -67,6 +67,7 @@ ApplicationWindow {
|
|||||||
networkView.visible = false
|
networkView.visible = false
|
||||||
historyView.visible = false
|
historyView.visible = false
|
||||||
newTxView.visible = false
|
newTxView.visible = false
|
||||||
|
infoView.visible = false
|
||||||
view.visible = true
|
view.visible = true
|
||||||
//root.title = "Ethereal - " = view.title
|
//root.title = "Ethereal - " = view.title
|
||||||
}
|
}
|
||||||
@ -120,6 +121,17 @@ ApplicationWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Image {
|
||||||
|
source: ui.assetPath("net.png")
|
||||||
|
anchors.horizontalCenter: parent.horizontalCenter
|
||||||
|
MouseArea {
|
||||||
|
anchors.fill: parent
|
||||||
|
onClicked: {
|
||||||
|
setView(infoView)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -217,6 +229,33 @@ ApplicationWindow {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Rectangle {
|
||||||
|
id: infoView
|
||||||
|
property var title: "Information"
|
||||||
|
visible: false
|
||||||
|
color: "#00000000"
|
||||||
|
anchors.fill: parent
|
||||||
|
|
||||||
|
Label {
|
||||||
|
id: addressLabel
|
||||||
|
text: "Address"
|
||||||
|
anchors {
|
||||||
|
margins: 5
|
||||||
|
top: parent.top
|
||||||
|
left: parent.left
|
||||||
|
}
|
||||||
|
}
|
||||||
|
TextField {
|
||||||
|
anchors {
|
||||||
|
margins: 5
|
||||||
|
left: addressLabel.right
|
||||||
|
top: parent.top
|
||||||
|
}
|
||||||
|
text: pub.getKey().address
|
||||||
|
width: 500
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
signal addPlugin(string name)
|
signal addPlugin(string name)
|
||||||
Component {
|
Component {
|
||||||
|
@ -74,6 +74,7 @@ func (gui *Gui) Start(assetPath string) {
|
|||||||
|
|
||||||
// Expose the eth library and the ui library to QML
|
// Expose the eth library and the ui library to QML
|
||||||
context.SetVar("eth", gui)
|
context.SetVar("eth", gui)
|
||||||
|
context.SetVar("pub", gui.pub)
|
||||||
gui.uiLib = NewUiLib(gui.engine, gui.eth, assetPath)
|
gui.uiLib = NewUiLib(gui.engine, gui.eth, assetPath)
|
||||||
context.SetVar("ui", gui.uiLib)
|
context.SetVar("ui", gui.uiLib)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user