Documentation ¶
Overview ¶
Package splash contains routines to run Vinegar's splash window.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrClosed = errors.New("window closed")
Functions ¶
Types ¶
type Config ¶ added in v1.6.0
type Config struct { Enabled bool `toml:"enabled"` // Determines if splash is shown or not LogoPath string `toml:"logo_path"` // Logo file path used to load and render the logo Style string `toml:"style"` // Style to use for the splash layout BgColor uint32 `toml:"background"` // Foreground color FgColor uint32 `toml:"foreground"` // Background color CancelColor uint32 `toml:"cancel,red"` // Background color for the Cancel button AccentColor uint32 `toml:"accent"` // Color for progress bar's track and ShowLog button TrackColor uint32 `toml:"track,gray1"` // Color for the progress bar's background InfoColor uint32 `toml:"info,gray2"` // Foreground color for the text containing binary information }
type D ¶
type D = layout.Dimensions
type Splash ¶
type Splash struct { *app.Window Theme *material.Theme Config *Config Style LogPath string // contains filtered or unexported fields }
func (*Splash) Dialog ¶
Make a new application window using vinegar's existing properties to simulate a dialog. user parameter dictates if Dialog returns a boolean based on if the user clicked 'Yes' or 'No' on the dialog, otherwise it will only make an 'Okay' button.
The dialog window size will automatically resize itself vertically according to how many lines the text takes.
func (*Splash) SetMessage ¶
func (*Splash) SetProgress ¶
Click to show internal directories.
Click to hide internal directories.