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:
Tim Culverhouse
2024-07-10 11:58:03 -05:00
parent b1677b8900
commit 6c40cd963d
4 changed files with 45 additions and 4 deletions

View File

@@ -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