Regular browser option added
This commit is contained in:
parent
a915ba17ed
commit
4dc5855dfe
21
ethereal/assets/ext/home.html
Normal file
21
ethereal/assets/ext/home.html
Normal file
@ -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>
|
||||||
|
|
@ -27,6 +27,11 @@ ApplicationWindow {
|
|||||||
onTriggered: openAppDialog.open()
|
onTriggered: openAppDialog.open()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
MenuItem {
|
||||||
|
text: "Browser"
|
||||||
|
onTriggered: ui.openBrowser()
|
||||||
|
}
|
||||||
|
|
||||||
MenuSeparator {}
|
MenuSeparator {}
|
||||||
|
|
||||||
MenuItem {
|
MenuItem {
|
||||||
|
@ -1,10 +1,11 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
"path"
|
||||||
|
|
||||||
"github.com/ethereum/eth-go"
|
"github.com/ethereum/eth-go"
|
||||||
"github.com/ethereum/eth-go/ethutil"
|
"github.com/ethereum/eth-go/ethutil"
|
||||||
"github.com/go-qml/qml"
|
"github.com/go-qml/qml"
|
||||||
"path"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
type memAddr struct {
|
type memAddr struct {
|
||||||
@ -42,6 +43,10 @@ func (ui *UiLib) OpenHtml(path string) {
|
|||||||
go app.run()
|
go app.run()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (ui *UiLib) OpenBrowser() {
|
||||||
|
ui.OpenHtml("file://" + ui.AssetPath("ext/home.html"))
|
||||||
|
}
|
||||||
|
|
||||||
func (ui *UiLib) Muted(content string) {
|
func (ui *UiLib) Muted(content string) {
|
||||||
component, err := ui.engine.LoadFile(ui.AssetPath("qml/muted.qml"))
|
component, err := ui.engine.LoadFile(ui.AssetPath("qml/muted.qml"))
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
Reference in New Issue
Block a user