Use windowBackgroundColor instead of controlColor for macOS system base color
Per Apple Developer Documentation: windowBackgroundColor: "The color to use for the window background." controlColor: "The color to use for the flat surfaces of a control." Godot's base_color more closely corresponds to windowBackgroundColor. In some cases, controlColor may even return values that are not appropriate for use as a base color.
This commit is contained in:
parent
3978628c6c
commit
2f27abc1c1
@ -865,7 +865,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];
|
||||
|
Loading…
Reference in New Issue
Block a user