Documentation
¶
Overview ¶
Package appwindow opens the user interface in its own window.
A Chromium-based browser in "app mode" gives a chromeless window with no tabs, address bar or bookmarks, which reads as a native application window while keeping the whole program a single dependency-free binary. If no such browser is available the page is opened in the default browser instead.
Index ¶
Constants ¶
const BrowserEnv = "FLOCKDECK_BROWSER"
BrowserEnv names a specific browser binary to use, overriding the search.
Variables ¶
var ErrNoBrowser = errors.New("no browser found to display the interface")
ErrNoBrowser is returned when nothing could be found to display the UI.
Functions ¶
This section is empty.
Types ¶
type Window ¶
type Window struct {
// AppMode reports whether the window is a dedicated app window rather than
// a tab in the user's ordinary browser.
AppMode bool
// Program is the browser that was launched, for diagnostics.
Program string
// contains filtered or unexported fields
}
Window is a running UI window.