mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-19 22:10:29 +00:00
Add option to hide macOS traffic lights
This commit is contained in:
@@ -2053,6 +2053,25 @@ keybind: Keybinds = .{},
|
||||
/// it will retain the previous setting until fullscreen is exited.
|
||||
@"macos-non-native-fullscreen": NonNativeFullscreen = .false,
|
||||
|
||||
/// Whether the window buttons in the macOS titlebar are visible. The window
|
||||
/// buttons are the colored buttons in the upper left corner of most macOS apps,
|
||||
/// also known as the traffic lights, that allow you to close, miniaturize, and
|
||||
/// zoom the window.
|
||||
///
|
||||
/// This setting has no effect when `window-decoration = false` or
|
||||
/// `macos-titlebar-style = hidden`, as the window buttons are always hidden in
|
||||
/// these modes.
|
||||
///
|
||||
/// Valid values are:
|
||||
///
|
||||
/// * `visible` - Show the window buttons.
|
||||
/// * `hidden` - Hide the window buttons.
|
||||
///
|
||||
/// The default value is `visible`.
|
||||
///
|
||||
/// Changing this option at runtime only applies to new windows.
|
||||
@"macos-window-buttons": MacWindowButtons = .visible,
|
||||
|
||||
/// The style of the macOS titlebar. Available values are: "native",
|
||||
/// "transparent", "tabs", and "hidden".
|
||||
///
|
||||
@@ -5803,6 +5822,12 @@ pub const WindowColorspace = enum {
|
||||
@"display-p3",
|
||||
};
|
||||
|
||||
/// See macos-window-buttons
|
||||
pub const MacWindowButtons = enum {
|
||||
visible,
|
||||
hidden,
|
||||
};
|
||||
|
||||
/// See macos-titlebar-style
|
||||
pub const MacTitlebarStyle = enum {
|
||||
native,
|
||||
|
||||
Reference in New Issue
Block a user