summaryrefslogtreecommitdiffhomepage
path: root/packages/tui/internal/components/modal
diff options
context:
space:
mode:
authorAdam <[email protected]>2025-06-26 10:16:07 -0500
committerGitHub <[email protected]>2025-06-26 10:16:07 -0500
commit7d13baadc84d7377a352c6d58ed9deeea2c918be (patch)
tree575b6897431e390ae8bf4b9ccde2803446c6c67a /packages/tui/internal/components/modal
parentdb24bf87c01d3fff2a9594e55e9fab0d9ef52cfe (diff)
downloadopencode-7d13baadc84d7377a352c6d58ed9deeea2c918be.tar.gz
opencode-7d13baadc84d7377a352c6d58ed9deeea2c918be.zip
feat: default system theme (#419)
Co-authored-by: adamdottv <[email protected]>
Diffstat (limited to 'packages/tui/internal/components/modal')
-rw-r--r--packages/tui/internal/components/modal/modal.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/packages/tui/internal/components/modal/modal.go b/packages/tui/internal/components/modal/modal.go
index 62cafe843..6bce64247 100644
--- a/packages/tui/internal/components/modal/modal.go
+++ b/packages/tui/internal/components/modal/modal.go
@@ -90,12 +90,8 @@ func (m *Modal) Render(contentView string, background string) string {
innerWidth := outerWidth - 4
- // Base style for the modal
- baseStyle := styles.BaseStyle().
- Background(t.BackgroundElement()).
- Foreground(t.TextMuted())
+ baseStyle := styles.NewStyle().Foreground(t.TextMuted()).Background(t.BackgroundElement())
- // Add title if provided
var finalContent string
if m.title != "" {
titleStyle := baseStyle.