You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #95049 from Grublady/mac_system_color
Use windowBackgroundColor instead of controlColor for macOS system base color
This commit is contained in:
@@ -903,7 +903,7 @@ Color DisplayServerMacOS::get_base_color() const {
|
||||
__block NSColor *color = nullptr;
|
||||
if (@available(macOS 11.0, *)) {
|
||||
[NSApp.effectiveAppearance performAsCurrentDrawingAppearance:^{
|
||||
color = [[NSColor controlColor] colorUsingColorSpace:[NSColorSpace genericRGBColorSpace]];
|
||||
color = [[NSColor windowBackgroundColor] colorUsingColorSpace:[NSColorSpace genericRGBColorSpace]];
|
||||
}];
|
||||
} else {
|
||||
NSAppearance *saved_appearance = [NSAppearance currentAppearance];
|
||||
|
||||
Reference in New Issue
Block a user