diff options
| author | Adam <[email protected]> | 2025-06-26 10:16:07 -0500 |
|---|---|---|
| committer | Jay V <[email protected]> | 2025-06-26 17:21:53 -0400 |
| commit | 2e26b58d160cc7cfc5c403cd63cbb30fad9fe8d0 (patch) | |
| tree | 8adf56cd142dd6426bfa93aa8ed891d326f69231 /packages/tui/internal/components/modal | |
| parent | 31b56e5a05313fea9232bea4c9e90db00a2d23e7 (diff) | |
| download | opencode-2e26b58d160cc7cfc5c403cd63cbb30fad9fe8d0.tar.gz opencode-2e26b58d160cc7cfc5c403cd63cbb30fad9fe8d0.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.go | 6 |
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. |
