Documentation
¶
Overview ¶
Package themepicker is File > Settings > Theme: every theme in a picker, fuzzy searched by name, "dark" or "light". The highlighted theme is drawn live; Enter keeps it, Esc goes back to the theme there was. It knows the UI only through Host, which draws and saves themes.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Host ¶
type Host interface {
picker.Host
// Current is the theme configured for the terminal's background.
Current() string
// ThemesDir is where the user's own themes are.
ThemesDir() string
// Preview draws the theme named name; "" goes back to the configured
// one.
Preview(name string)
// Keep closes the picker and makes name the theme, saving it.
Keep(name string)
}
Host is what the theme picker needs of the UI: a picker's host, and the themes.
Click to show internal directories.
Click to hide internal directories.