Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DismissMsg ¶
type DismissMsg struct{}
DismissMsg is sent when the user closes the theme picker without selecting.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model is the theme picker overlay.
func New ¶
func New(available []theme.AvailableTheme, width, height int) Model
New creates a new theme picker overlay.
func (*Model) HandleRemote ¶
func (m *Model) HandleRemote(msg RemoteThemesMsg)
HandleRemote merges remote themes into the picker's entries.
type PreviewMsg ¶
PreviewMsg is sent when the user navigates to a theme (for live preview).
type RemoteThemesMsg ¶
type RemoteThemesMsg struct {
Themes []theme.AvailableTheme
}
RemoteThemesMsg delivers themes fetched from GitHub.
type SelectMsg ¶
type SelectMsg struct {
Key string // config key (filename stem)
Source string // theme.SourceDefault, SourceLocal, or SourceRemote
RawTOML []byte // non-nil for remote themes (written to disk on select)
Theme theme.Theme
}
SelectMsg is sent when the user confirms a theme selection.
Click to show internal directories.
Click to hide internal directories.