feat(ui): frameless modern window frame with dark titlebar controls and sleek dark scrollbars
Build Windows Installer / build (push) Successful in 18m51s
Build Windows Installer / build (push) Successful in 18m51s
This commit is contained in:
5 files changed
+197
-6
No files matched your search
@@ -288,3 +288,28 @@ func (a *App) OpenOutputFile(path string) error {
|
||||
}
|
||||
return exec.Command("xdg-open", path).Start()
|
||||
}
|
||||
|
||||
func (a *App) WindowMinimise() {
|
||||
if a.ctx != nil {
|
||||
runtime.WindowMinimise(a.ctx)
|
||||
}
|
||||
}
|
||||
|
||||
func (a *App) WindowToggleMaximise() {
|
||||
if a.ctx != nil {
|
||||
runtime.WindowToggleMaximise(a.ctx)
|
||||
}
|
||||
}
|
||||
|
||||
func (a *App) WindowClose() {
|
||||
if a.ctx != nil {
|
||||
runtime.Quit(a.ctx)
|
||||
}
|
||||
}
|
||||
|
||||
func (a *App) WindowIsMaximised() bool {
|
||||
if a.ctx != nil {
|
||||
return runtime.WindowIsMaximised(a.ctx)
|
||||
}
|
||||
return false
|
||||
}
|
||||
Reference in new issue
Block a user