summaryrefslogtreecommitdiffhomepage
path: root/internal/tui/layout/overlay.go
diff options
context:
space:
mode:
authoradamdottv <[email protected]>2025-04-28 08:46:09 -0500
committeradamdottv <[email protected]>2025-04-30 07:46:34 -0500
commit61b605e724eb4cc50ab831534fcdd18e031d68eb (patch)
treeb15b074a8fed1931e179a8d3df08d05b753c7aa3 /internal/tui/layout/overlay.go
parent61d9dc95111d2645a49816f6d9d6cc1014be1a22 (diff)
downloadopencode-61b605e724eb4cc50ab831534fcdd18e031d68eb.tar.gz
opencode-61b605e724eb4cc50ab831534fcdd18e031d68eb.zip
feat: themes
Diffstat (limited to 'internal/tui/layout/overlay.go')
-rw-r--r--internal/tui/layout/overlay.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/internal/tui/layout/overlay.go b/internal/tui/layout/overlay.go
index 379747e69..3a14dbc5e 100644
--- a/internal/tui/layout/overlay.go
+++ b/internal/tui/layout/overlay.go
@@ -9,6 +9,7 @@ import (
"github.com/muesli/reflow/truncate"
"github.com/muesli/termenv"
"github.com/opencode-ai/opencode/internal/tui/styles"
+ "github.com/opencode-ai/opencode/internal/tui/theme"
"github.com/opencode-ai/opencode/internal/tui/util"
)
@@ -43,12 +44,15 @@ func PlaceOverlay(
fgHeight := len(fgLines)
if shadow {
+ t := theme.CurrentTheme()
+ baseStyle := styles.BaseStyle()
+
var shadowbg string = ""
shadowchar := lipgloss.NewStyle().
- Background(styles.BackgroundDarker).
- Foreground(styles.Background).
+ Background(t.BackgroundDarker()).
+ Foreground(t.Background()).
Render("░")
- bgchar := styles.BaseStyle.Render(" ")
+ bgchar := baseStyle.Render(" ")
for i := 0; i <= fgHeight; i++ {
if i == 0 {
shadowbg += bgchar + strings.Repeat(bgchar, fgWidth) + "\n"