Browse Source

Made it possible to enable dark MacOS titlebar through the C definition MACOS_DARK_TITLEBAR

merge-requests/413/head
eidheim 3 years ago
parent
commit
20530fab7e
  1. 5
      src/window_macos.m

5
src/window_macos.m

@ -2,6 +2,9 @@
void macos_force_foreground_level() { void macos_force_foreground_level() {
[NSApp activateIgnoringOtherApps: YES]; [NSApp activateIgnoringOtherApps: YES];
#ifdef MACOS_DARK_TITLEBAR
// Set dark titlebar // Set dark titlebar
// [[NSApplication sharedApplication].windows[0] setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameVibrantDark]]; [[NSApplication sharedApplication].windows[0] setAppearance:[NSAppearance appearanceNamed:NSAppearanceNameVibrantDark]];
#endif
} }

Loading…
Cancel
Save