diff options
| author | Paul Buetow <paul@buetow.org> | 2026-03-05 19:34:01 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-03-05 19:34:01 +0200 |
| commit | 5fe164e91e40e8a3f749f4143f7562f940bf9f67 (patch) | |
| tree | d77b03c737628fa58171de28eb89720c96f203b2 /internal/tui/styles.go | |
| parent | a44f6ee30c11963552b5b90a19698873aa9b6b6d (diff) | |
feat(tui): detect terminal theme and apply palettes
Diffstat (limited to 'internal/tui/styles.go')
| -rw-r--r-- | internal/tui/styles.go | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/internal/tui/styles.go b/internal/tui/styles.go index 3bf69f7..9f7a16a 100644 --- a/internal/tui/styles.go +++ b/internal/tui/styles.go @@ -38,3 +38,26 @@ var ( // ErrorStyle is used for fatal or warning messages. ErrorStyle = common.ErrorStyle ) + +func syncStylesFromCommon() { + ColorBackground = common.ColorBackground + ColorPanel = common.ColorPanel + ColorPrimary = common.ColorPrimary + ColorAccent = common.ColorAccent + ColorMuted = common.ColorMuted + ColorText = common.ColorText + ColorDanger = common.ColorDanger + + ScreenStyle = common.ScreenStyle + HeaderStyle = common.HeaderStyle + TabActiveStyle = common.TabActiveStyle + TabInactiveStyle = common.TabInactiveStyle + PanelStyle = common.PanelStyle + HelpBarStyle = common.HelpBarStyle + HighlightStyle = common.HighlightStyle + ErrorStyle = common.ErrorStyle +} + +func init() { + syncStylesFromCommon() +} |
