Documentation
¶
Overview ¶
Package settings implements the settings overlay panel for grut. It displays a navigable list of configurable options (preview position, theme, double-click actions) and emits messages when the user changes a value.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Panel ¶
Panel is the settings overlay. It implements panels.Panel.
func New ¶
func New(currentPos layout.PreviewPosition, currentTheme string, themeNames []string, actionsCfg config.ActionsConfig, th *theme.Theme) *Panel
New creates a new settings overlay panel.
func (*Panel) Init ¶
--------------------------------------------------------------------------- panels.Panel interface --------------------------------------------------------------------------- Init implements panels.Panel.
func (*Panel) KeyBindings ¶
func (p *Panel) KeyBindings() []panels.KeyBinding
KeyBindings implements panels.Panel.
type ResetActionPromptsMsg ¶
type ResetActionPromptsMsg = panels.ResetActionPromptsMsg
Message type aliases — the canonical definitions now live in the panels package so that the root TUI model can type-switch without importing this package directly. The aliases preserve backwards compatibility for any external callers and internal tests.
type SetDoubleClickActionMsg ¶
type SetDoubleClickActionMsg = panels.SetDoubleClickActionMsg
Message type aliases — the canonical definitions now live in the panels package so that the root TUI model can type-switch without importing this package directly. The aliases preserve backwards compatibility for any external callers and internal tests.
type SetPreviewPositionMsg ¶
type SetPreviewPositionMsg = panels.SetPreviewPositionMsg
Message type aliases — the canonical definitions now live in the panels package so that the root TUI model can type-switch without importing this package directly. The aliases preserve backwards compatibility for any external callers and internal tests.
type SetRightClickActionMsg ¶
type SetRightClickActionMsg = panels.SetRightClickActionMsg
Message type aliases — the canonical definitions now live in the panels package so that the root TUI model can type-switch without importing this package directly. The aliases preserve backwards compatibility for any external callers and internal tests.
type SetThemeMsg ¶
type SetThemeMsg = panels.SetThemeMsg
Message type aliases — the canonical definitions now live in the panels package so that the root TUI model can type-switch without importing this package directly. The aliases preserve backwards compatibility for any external callers and internal tests.
type ToggleSettingsMsg ¶
type ToggleSettingsMsg = panels.ToggleSettingsMsg
Message type aliases — the canonical definitions now live in the panels package so that the root TUI model can type-switch without importing this package directly. The aliases preserve backwards compatibility for any external callers and internal tests.