mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-17 23:31:56 +00:00
renderer: reload background, foreground, cursor-color at runtime
Fixes #1212
This commit is contained in:
@@ -1658,6 +1658,11 @@ pub fn changeConfig(self: *OpenGL, config: *DerivedConfig) !void {
|
||||
self.font_shaper = font_shaper;
|
||||
}
|
||||
|
||||
// Set our new colors
|
||||
self.background_color = config.background;
|
||||
self.foreground_color = config.foreground;
|
||||
self.cursor_color = config.cursor_color;
|
||||
|
||||
// Update our uniforms
|
||||
self.deferred_config = .{};
|
||||
|
||||
|
Reference in New Issue
Block a user