mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 08:46:08 +03:00
apprt: add window-titlebar-{background,foreground} config options
This gives people finer-grained control over the coloring of their window titlebars. Currently only implemented for GTK. Signed-off-by: Tristan Partin <tristan@partin.io>
This commit is contained in:
@ -966,8 +966,8 @@ fn loadRuntimeCss(
|
|||||||
const config: *const Config = &self.config;
|
const config: *const Config = &self.config;
|
||||||
const window_theme = config.@"window-theme";
|
const window_theme = config.@"window-theme";
|
||||||
const unfocused_fill: Config.Color = config.@"unfocused-split-fill" orelse config.background;
|
const unfocused_fill: Config.Color = config.@"unfocused-split-fill" orelse config.background;
|
||||||
const headerbar_background = config.background;
|
const headerbar_background = config.@"window-titlebar-background" orelse config.background;
|
||||||
const headerbar_foreground = config.foreground;
|
const headerbar_foreground = config.@"window-titlebar-foreground" orelse config.foreground;
|
||||||
|
|
||||||
try writer.print(
|
try writer.print(
|
||||||
\\widget.unfocused-split {{
|
\\widget.unfocused-split {{
|
||||||
|
@ -1149,6 +1149,16 @@ keybind: Keybinds = .{},
|
|||||||
/// * `end` - Insert the new tab at the end of the tab list.
|
/// * `end` - Insert the new tab at the end of the tab list.
|
||||||
@"window-new-tab-position": WindowNewTabPosition = .current,
|
@"window-new-tab-position": WindowNewTabPosition = .current,
|
||||||
|
|
||||||
|
/// Background color for the window titlebar. This only takes effect if
|
||||||
|
/// window-theme is set to ghostty. Currently only supported in the GTK app
|
||||||
|
/// runtime.
|
||||||
|
@"window-titlebar-background": ?Color = null,
|
||||||
|
|
||||||
|
/// Foreground color for the window titlebar. This only takes effect if
|
||||||
|
/// window-theme is set to ghostty. Currently only supported in the GTK app
|
||||||
|
/// runtime.
|
||||||
|
@"window-titlebar-foreground": ?Color = null,
|
||||||
|
|
||||||
/// This controls when resize overlays are shown. Resize overlays are a
|
/// This controls when resize overlays are shown. Resize overlays are a
|
||||||
/// transient popup that shows the size of the terminal while the surfaces are
|
/// transient popup that shows the size of the terminal while the surfaces are
|
||||||
/// being resized. The possible options are:
|
/// being resized. The possible options are:
|
||||||
|
Reference in New Issue
Block a user