summaryrefslogtreecommitdiff
path: root/internal/tui/styles.go
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-03-06 17:32:24 +0200
committerPaul Buetow <paul@buetow.org>2026-03-06 17:32:24 +0200
commit1561987330cb898f5ff64383a9c78e7e6559f118 (patch)
tree69a823e8f98dce572566c97e6879c11c9d591bda /internal/tui/styles.go
parent96225fb6159212a8851043a08d781aba721b4e78 (diff)
parent110a193e04b81abb8d8e159abd73f9f6ed1acd7e (diff)
Merge branch 'feat/bubbletea-v2-migration'
Diffstat (limited to 'internal/tui/styles.go')
-rw-r--r--internal/tui/styles.go25
1 files changed, 22 insertions, 3 deletions
diff --git a/internal/tui/styles.go b/internal/tui/styles.go
index 3bf69f7..5452e57 100644
--- a/internal/tui/styles.go
+++ b/internal/tui/styles.go
@@ -26,9 +26,6 @@ var (
// TabInactiveStyle is applied to non-selected tabs.
TabInactiveStyle = common.TabInactiveStyle
- // PanelStyle is used for boxed sections.
- PanelStyle = common.PanelStyle
-
// HelpBarStyle is used for keybinding hints at the bottom.
HelpBarStyle = common.HelpBarStyle
@@ -38,3 +35,25 @@ 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
+ HelpBarStyle = common.HelpBarStyle
+ HighlightStyle = common.HighlightStyle
+ ErrorStyle = common.ErrorStyle
+}
+
+func init() {
+ syncStylesFromCommon()
+}