Browse Source

Merge pull request #95049 from Grublady/mac_system_color

Use windowBackgroundColor instead of controlColor for macOS system base color
Thaddeus Crews 5 months ago
parent
commit
5788e436d3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      platform/macos/display_server_macos.mm

+ 1 - 1
platform/macos/display_server_macos.mm

@@ -903,7 +903,7 @@ Color DisplayServerMacOS::get_base_color() const {
 		__block NSColor *color = nullptr;
 		__block NSColor *color = nullptr;
 		if (@available(macOS 11.0, *)) {
 		if (@available(macOS 11.0, *)) {
 			[NSApp.effectiveAppearance performAsCurrentDrawingAppearance:^{
 			[NSApp.effectiveAppearance performAsCurrentDrawingAppearance:^{
-				color = [[NSColor controlColor] colorUsingColorSpace:[NSColorSpace genericRGBColorSpace]];
+				color = [[NSColor windowBackgroundColor] colorUsingColorSpace:[NSColorSpace genericRGBColorSpace]];
 			}];
 			}];
 		} else {
 		} else {
 			NSAppearance *saved_appearance = [NSAppearance currentAppearance];
 			NSAppearance *saved_appearance = [NSAppearance currentAppearance];