summaryrefslogtreecommitdiffhomepage
path: root/packages/tui/internal/theme/system.go
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-07-01 07:57:31 -0500
committeradamdottv <[email protected]>2025-07-01 07:57:45 -0500
commit33b5fe236a204a3d1d935a94e1d1d5f3a6f312a8 (patch)
treeae9ad03002ee312652497539e9f9c668e235922e /packages/tui/internal/theme/system.go
parentd56991006c8c94b954bf1b1734280719fe3be239 (diff)
downloadopencode-33b5fe236a204a3d1d935a94e1d1d5f3a6f312a8.tar.gz
opencode-33b5fe236a204a3d1d935a94e1d1d5f3a6f312a8.zip
fix(tui): better message rendering performance
Diffstat (limited to 'packages/tui/internal/theme/system.go')
-rw-r--r--packages/tui/internal/theme/system.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/packages/tui/internal/theme/system.go b/packages/tui/internal/theme/system.go
index 7524bb3f9..8dd48cfec 100644
--- a/packages/tui/internal/theme/system.go
+++ b/packages/tui/internal/theme/system.go
@@ -27,6 +27,10 @@ func NewSystemTheme(terminalBg color.Color, isDark bool) *SystemTheme {
return theme
}
+func (t *SystemTheme) Name() string {
+ return "system"
+}
+
// initializeColors sets up all theme colors
func (t *SystemTheme) initializeColors() {
// Generate gray scale based on terminal background