Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Sources/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2005,7 +2005,7 @@ struct ContentView: View {
}

static func tmuxWorkspacePaneExactRect(
for panel: Panel,
for panel: any Panel,
in contentView: NSView
) -> CGRect? {
let targetView: NSView?
Expand Down
8 changes: 8 additions & 0 deletions Sources/GhosttyTerminalView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5647,6 +5647,14 @@ class GhosttyNSView: NSView, NSUserInterfaceValidations {
}
return
}
// Push the current config to this surface before switching the color scheme.
// ghostty_surface_set_color_scheme alone only updates the scheme flag but does
// not re-apply the ANSI palette (OSC 4, colors 0-15) to the existing surface.
// Calling ghostty_surface_update_config first ensures the surface picks up the
// full palette for the new scheme (light/dark) from the current config.
if let config = GhosttyApp.shared.config {
ghostty_surface_update_config(surface, config)
}
ghostty_surface_set_color_scheme(surface, scheme)
appliedColorScheme = scheme
if GhosttyApp.shared.backgroundLogEnabled {
Expand Down