From 4cb3aaece410fa00da0b29ede9d1ac0cba1f59f8 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 24 Sep 2025 12:58:25 -0700 Subject: [PATCH] GTK: Fix split-divider-color (#8853) The `loadRuntimeCss416` overrode a color option for the split divider color https://github.com/ghostty-org/ghostty/blob/main/src/apprt/gtk/class/application.zig#L959-L965 I moved the user config options until the other runtime css is loaded so they will always take priority --- src/apprt/gtk/class/application.zig | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/apprt/gtk/class/application.zig b/src/apprt/gtk/class/application.zig index 5f87613cd..9a0cc251c 100644 --- a/src/apprt/gtk/class/application.zig +++ b/src/apprt/gtk/class/application.zig @@ -741,6 +741,10 @@ pub const Application = extern struct { const writer = buf.writer(alloc); + // Load standard css first as it can override some of the user configured styling. + try loadRuntimeCss414(config, &writer); + try loadRuntimeCss416(config, &writer); + const unfocused_fill: CoreConfig.Color = config.@"unfocused-split-fill" orelse config.background; try writer.print( @@ -779,9 +783,6 @@ pub const Application = extern struct { , .{ .font_family = font_family }); } - try loadRuntimeCss414(config, &writer); - try loadRuntimeCss416(config, &writer); - // ensure that we have a sentinel try writer.writeByte(0);