From 20530fab7e973b3ed95bf09586140d07ab3775f4 Mon Sep 17 00:00:00 2001 From: eidheim Date: Wed, 14 Sep 2022 22:05:45 +0200 Subject: [PATCH] Made it possible to enable dark MacOS titlebar through the C definition MACOS_DARK_TITLEBAR --- src/window_macos.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/window_macos.m b/src/window_macos.m index b2871c4..efe6865 100644 --- a/src/window_macos.m +++ b/src/window_macos.m @@ -2,6 +2,9 @@ void macos_force_foreground_level() { [NSApp activateIgnoringOtherApps: YES]; + +#ifdef MACOS_DARK_TITLEBAR // Set dark titlebar - // [[NSApplication sharedApplication].windows[0] setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameVibrantDark]]; + [[NSApplication sharedApplication].windows[0] setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameVibrantDark]]; +#endif }