Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
Geth-Modification
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张蕾
Geth-Modification
Commits
4dc5855d
Commit
4dc5855d
authored
Aug 07, 2014
by
obscuren
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regular browser option added
parent
a915ba17
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
1 deletion
+32
-1
home.html
ethereal/assets/ext/home.html
+21
-0
wallet.qml
ethereal/assets/qml/wallet.qml
+5
-0
ui_lib.go
ethereal/ui_lib.go
+6
-1
No files found.
ethereal/assets/ext/home.html
0 → 100644
View file @
4dc5855d
<
!
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>
ethereal/assets/qml/wallet.qml
View file @
4dc5855d
...
...
@@ -27,6 +27,11 @@ ApplicationWindow {
onTriggered
:
openAppDialog
.
open
()
}
MenuItem
{
text
:
"Browser"
onTriggered
:
ui
.
openBrowser
()
}
MenuSeparator
{}
MenuItem
{
...
...
ethereal/ui_lib.go
View file @
4dc5855d
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
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment