You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +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;
|
__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];
|
||||||
|
|||||||
Reference in New Issue
Block a user