aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ethereal/assets/ext/home.html21
-rw-r--r--ethereal/assets/qml/wallet.qml5
-rw-r--r--ethereal/ui_lib.go7
3 files changed, 32 insertions, 1 deletions
diff --git a/ethereal/assets/ext/home.html b/ethereal/assets/ext/home.html
new file mode 100644
index 000000000..54af76991
--- /dev/null
+++ b/ethereal/assets/ext/home.html
@@ -0,0 +1,21 @@
+<!doctype>
+<html>
+<head>
+<title>Ethereum</title>
+
+<style type="text/css">
+h1 {
+ text-align: center;
+ font-family: Courier;
+ font-size: 50pt;
+ margin-top: 25%
+}
+</style>
+</head>
+
+<body>
+<h1>Ethereum</h1>
+<!-- ĐΞV --!>
+</body>
+</html>
+
diff --git a/ethereal/assets/qml/wallet.qml b/ethereal/assets/qml/wallet.qml
index 84022a230..92641fb3e 100644
--- a/ethereal/assets/qml/wallet.qml
+++ b/ethereal/assets/qml/wallet.qml
@@ -27,6 +27,11 @@ ApplicationWindow {
onTriggered: openAppDialog.open()
}
+ MenuItem {
+ text: "Browser"
+ onTriggered: ui.openBrowser()
+ }
+
MenuSeparator {}
MenuItem {
diff --git a/ethereal/ui_lib.go b/ethereal/ui_lib.go
index 6a62fa1df..42c5c9ad2 100644
--- a/ethereal/ui_lib.go
+++ b/ethereal/ui_lib.go
@@ -1,10 +1,11 @@
package main
import (
+ "path"
+
"github.com/ethereum/eth-go"
"github.com/ethereum/eth-go/ethutil"
"github.com/go-qml/qml"
- "path"
)
type memAddr struct {
@@ -42,6 +43,10 @@ func (ui *UiLib) OpenHtml(path string) {
go app.run()
}
+func (ui *UiLib) OpenBrowser() {
+ ui.OpenHtml("file://" + ui.AssetPath("ext/home.html"))
+}
+
func (ui *UiLib) Muted(content string) {
component, err := ui.engine.LoadFile(ui.AssetPath("qml/muted.qml"))
if err != nil {