summaryrefslogtreecommitdiff
path: root/internal/tui/styles.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-05 19:34:01 +0200
committerPaul Buetow <paul@buetow.org>2026-03-05 19:34:01 +0200
commit5fe164e91e40e8a3f749f4143f7562f940bf9f67 (patch)
treed77b03c737628fa58171de28eb89720c96f203b2 /internal/tui/styles.go
parenta44f6ee30c11963552b5b90a19698873aa9b6b6d (diff)
feat(tui): detect terminal theme and apply palettes
Diffstat (limited to 'internal/tui/styles.go')
-rw-r--r--internal/tui/styles.go23
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()
+}