mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-18 01:36:08 +03:00
move color-mgmt to config
This commit is contained in:
@ -146,14 +146,14 @@ pub fn init(core_app: *CoreApp, opts: Options) !App {
|
|||||||
|
|
||||||
var gdk_disable: struct {
|
var gdk_disable: struct {
|
||||||
@"gles-api": bool = false,
|
@"gles-api": bool = false,
|
||||||
/// current gtk implementation for color management is not good enough.
|
@"color-mgmt": bool,
|
||||||
/// see: https://bugs.kde.org/show_bug.cgi?id=495647
|
|
||||||
@"color-mgmt": bool = true,
|
|
||||||
/// Disabling Vulkan can improve startup times by hundreds of
|
/// Disabling Vulkan can improve startup times by hundreds of
|
||||||
/// milliseconds on some systems. We don't use Vulkan so we can just
|
/// milliseconds on some systems. We don't use Vulkan so we can just
|
||||||
/// disable it.
|
/// disable it.
|
||||||
vulkan: bool = false,
|
vulkan: bool = false,
|
||||||
} = .{};
|
} = .{
|
||||||
|
.@"color-mgmt" = config.@"disable-gtk-color-mgmt",
|
||||||
|
};
|
||||||
|
|
||||||
environment: {
|
environment: {
|
||||||
if (version.runtimeAtLeast(4, 16, 0)) {
|
if (version.runtimeAtLeast(4, 16, 0)) {
|
||||||
|
@ -1350,6 +1350,10 @@ keybind: Keybinds = .{},
|
|||||||
/// Specified as either hex (`#RRGGBB` or `RRGGBB`) or a named X11 color.
|
/// Specified as either hex (`#RRGGBB` or `RRGGBB`) or a named X11 color.
|
||||||
@"window-titlebar-foreground": ?Color = null,
|
@"window-titlebar-foreground": ?Color = null,
|
||||||
|
|
||||||
|
/// current gtk implementation for color management is not good enough.
|
||||||
|
/// see: https://bugs.kde.org/show_bug.cgi?id=495647
|
||||||
|
@"disable-gtk-color-mgmt": bool = false,
|
||||||
|
|
||||||
/// 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