From c461d585192e6ad929d6e011f6289463206ab506 Mon Sep 17 00:00:00 2001 From: Paul Date: Tue, 6 Aug 2024 09:52:03 +0200 Subject: [PATCH] gtk: One's complement the opacity of overlay for unfocused splits The case where the split if fully opaque (`unfocused-split-opacity = 1.0`) should result in the overlay being fully transparent (`opacity: 0.0`). This would be consistent with how this is implemented in the macos app: https://github.com/ghostty-org/ghostty/blob/dcc492f19b0540939ba923d6ef4041c534d08684/macos/Sources/Ghostty/Ghostty.Config.swift#L302 --- src/apprt/gtk/App.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apprt/gtk/App.zig b/src/apprt/gtk/App.zig index 4442f79db..60980ba1d 100644 --- a/src/apprt/gtk/App.zig +++ b/src/apprt/gtk/App.zig @@ -422,7 +422,7 @@ fn loadRuntimeCss(config: *const Config, provider: *c.GtkCssProvider) !void { &css_buf, fmt, .{ - config.@"unfocused-split-opacity", + 1.0 - config.@"unfocused-split-opacity", fill.r, fill.g, fill.b,