Skip to content

Commit

Permalink
gtk: One's complement the opacity of overlay for unfocused splits
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Pangoraw committed Aug 6, 2024
1 parent dcc492f commit c461d58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/apprt/gtk/App.zig
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit c461d58

Please sign in to comment.