mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-06 09:56:34 +00:00
gtk: implement unfocused-split opacity and fill
For a long time, us GTK users have been subject to lesser UX by not knowing which split was focused. Improve the GTK UX by implementing both unfocused-split-opacity and unfocused-split-fill. This is implemented by setting the background-color of the notebook stack, and conditionally applying a new css class "unfocused-split" to the unfocused split.
This commit is contained in:
@@ -409,8 +409,6 @@ palette: Palette = .{},
|
||||
/// is 0.15. This value still looks weird but you can at least see what's going
|
||||
/// on. A value outside of the range 0.15 to 1 will be clamped to the nearest
|
||||
/// valid value.
|
||||
///
|
||||
/// This is only supported on macOS.
|
||||
@"unfocused-split-opacity": f64 = 0.7,
|
||||
|
||||
/// The color to dim the unfocused split. Unfocused splits are dimmed by
|
||||
@@ -418,8 +416,6 @@ palette: Palette = .{},
|
||||
/// that rectangle and can be used to carefully control the dimming effect.
|
||||
///
|
||||
/// This will default to the background color.
|
||||
///
|
||||
/// This is only supported on macOS.
|
||||
@"unfocused-split-fill": ?Color = null,
|
||||
|
||||
/// The command to run, usually a shell. If this is not an absolute path, it'll
|
||||
|
Reference in New Issue
Block a user