Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KanataStatus ¶ added in v0.2.0
type KanataStatus string
type LayerIcons ¶
type LayerIcons struct {
// contains filtered or unexported fields
}
func ResolveIcons ¶
func ResolveIcons(configFolder string, cfg *config.Config) LayerIcons
func (LayerIcons) IconForLayerName ¶
func (c LayerIcons) IconForLayerName(presetName string, layerName string) []byte
Order of resolution: preset -> global -> preset_wildcard -> global_wildcard -> default
Returns nil if resolution yields no icon. Caller should then use global default icon.
func (LayerIcons) MappedLayers ¶ added in v0.2.0
func (c LayerIcons) MappedLayers(presetName string) []string
type LayerIconsForPreset ¶ added in v0.2.0
type LayerIconsForPreset struct {
// contains filtered or unexported fields
}
type PresetMenuEntry ¶ added in v0.2.0
func MenuTemplateFromConfig ¶
func MenuTemplateFromConfig(cfg config.Config) ([]PresetMenuEntry, error)
func (*PresetMenuEntry) Title ¶ added in v0.2.0
func (m *PresetMenuEntry) Title(status KanataStatus) string
func (*PresetMenuEntry) Tooltip ¶ added in v0.2.0
func (m *PresetMenuEntry) Tooltip() string
type SystrayApp ¶ added in v0.2.0
type SystrayApp struct {
// contains filtered or unexported fields
}
func NewSystrayApp ¶
func NewSystrayApp(menuTemplate []PresetMenuEntry, layerIcons LayerIcons, allowConcurrentPresets bool, logFilepath string) *SystrayApp
func (*SystrayApp) StartProcessingLoop ¶ added in v0.2.0
func (app *SystrayApp) StartProcessingLoop(runner *runner_pkg.Runner, configFolder string)
Click to show internal directories.
Click to hide internal directories.