diff options
| author | Mitchell Hashimoto <m@mitchellh.com> | 2025-09-24 12:58:25 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-24 12:58:25 -0700 |
| commit | fc0a37f9e02ffb1adb24cbbd64ed0c3ecfb46ecd (patch) | |
| tree | a1b0f8d16ec3daae908cdc465b4ddcc1d6e1e067 /src | |
| parent | 103e7abad58774261cefe930dbad4d5e579b53df (diff) | |
| parent | 35095fddda330339a44da164deac3e905ecb8a7a (diff) | |
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
Diffstat (limited to 'src')
| -rw-r--r-- | src/apprt/gtk/class/application.zig | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/apprt/gtk/class/application.zig b/src/apprt/gtk/class/application.zig index 4202115e5..6ab3ad282 100644 --- a/src/apprt/gtk/class/application.zig +++ b/src/apprt/gtk/class/application.zig @@ -809,6 +809,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( @@ -847,9 +851,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); |
