config: docs

This commit is contained in:
Mitchell Hashimoto
2023-12-13 18:54:36 -08:00
parent ae6645586e
commit 6b94252da6

View File

@ -314,8 +314,11 @@ palette: Palette = .{},
/// clamped to the nearest valid value. /// clamped to the nearest valid value.
@"unfocused-split-opacity": f64 = 0.85, @"unfocused-split-opacity": f64 = 0.85,
// The color to dim the unfocused split. // The color to dim the unfocused split. Unfocused splits are dimmed by
@"unfocused-split-fill": Color = Color{ .r = 255, .g = 255, .b = 255 }, // rendering a semi-transparent rectangle over the split. This sets
// the color of that rectangle and can be used to carefully control
// the dimming effect.
@"unfocused-split-fill": Color = .{ .r = 255, .g = 255, .b = 255 },
/// The command to run, usually a shell. If this is not an absolute path, /// The command to run, usually a shell. If this is not an absolute path,
/// it'll be looked up in the PATH. If this is not set, a default will /// it'll be looked up in the PATH. If this is not set, a default will
@ -1982,6 +1985,9 @@ pub const OptionAsAlt = enum {
}; };
/// Color represents a color using RGB. /// Color represents a color using RGB.
///
/// This is a packed struct so that the C API to read color values just
/// works by setting it to a C integer.
pub const Color = packed struct(u24) { pub const Color = packed struct(u24) {
r: u8, r: u8,
g: u8, g: u8,