diff options
author | obscuren <geffobscura@gmail.com> | 2014-04-28 06:25:01 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-04-28 06:25:01 +0800 |
commit | 68e5568804cc99d217e7a3aaca796406e428f221 (patch) | |
tree | 42698c2561a83a782a38ae586374cca243aecff0 /ethereal/ui | |
parent | 883810b53328b302aa765ccf9d228bd73c046cac (diff) | |
download | go-tangerine-68e5568804cc99d217e7a3aaca796406e428f221.tar go-tangerine-68e5568804cc99d217e7a3aaca796406e428f221.tar.gz go-tangerine-68e5568804cc99d217e7a3aaca796406e428f221.tar.bz2 go-tangerine-68e5568804cc99d217e7a3aaca796406e428f221.tar.lz go-tangerine-68e5568804cc99d217e7a3aaca796406e428f221.tar.xz go-tangerine-68e5568804cc99d217e7a3aaca796406e428f221.tar.zst go-tangerine-68e5568804cc99d217e7a3aaca796406e428f221.zip |
Draft mut(an)ed(itor)
Diffstat (limited to 'ethereal/ui')
-rw-r--r-- | ethereal/ui/ui_lib.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/ethereal/ui/ui_lib.go b/ethereal/ui/ui_lib.go index 6217c0065..309ab7928 100644 --- a/ethereal/ui/ui_lib.go +++ b/ethereal/ui/ui_lib.go @@ -108,6 +108,25 @@ func (ui *UiLib) OpenHtml(path string) { }() } +func (ui *UiLib) Muted(content string) { + component, err := ui.engine.LoadFile(ui.AssetPath("qml/muted.qml")) + if err != nil { + ethutil.Config.Log.Debugln(err) + + return + } + win := component.CreateWindow(nil) + go func() { + path := "file://" + ui.AssetPath("muted/index.html") + win.Set("url", path) + debuggerPath := "file://" + ui.AssetPath("muted/debugger.html") + win.Set("debugUrl", debuggerPath) + + win.Show() + win.Wait() + }() +} + func (ui *UiLib) Connect(button qml.Object) { if !ui.connected { ui.eth.Start() |