fix: Fill entire terminal with theme background color

- Add Terminal.fillBackground() method to fill screen with a color
- Add ANSIRenderer.backgroundCode() helper for background escape sequences
- AppRunner now fills screen with theme.background before rendering content
- Remove unnecessary .frame() and .background() from ContentView

This ensures the entire terminal has a consistent background color that
changes when switching themes.
This commit is contained in:
phranck
2026-01-28 21:15:41 +01:00
parent 6c4e84d8dd
commit fd3baee9f7
4 changed files with 40 additions and 5 deletions
+2 -3
View File
@@ -18,10 +18,9 @@ struct ContentView: View {
var body: some View {
let state = ExampleAppState.shared
// Show current page based on state with theme background
// Show current page based on state
// Note: Background color is set by AppRunner using theme.background
pageContent(for: state.currentPage)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(Color.theme.background)
.onKeyPress { event in
switch event.key {
case .escape: