mirror of
https://github.com/phranck/TUIkit.git
synced 2026-06-20 09:54:37 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user