[vlc-commits] [Git][videolan/vlc][master] macosx: Include NSAppearanceNameVibrantDark in dark mode detection, fixing borked labels
Hugo Beauzée-Luyssen (@chouquette)
gitlab at videolan.org
Mon Jul 11 07:31:03 UTC 2022
Hugo Beauzée-Luyssen pushed to branch master at VideoLAN / VLC
Commits:
4989505a by Claudio Cambra at 2022-07-11T07:06:03+00:00
macosx: Include NSAppearanceNameVibrantDark in dark mode detection, fixing borked labels
Signed-off-by: Claudio Cambra <claudio.cambra at gmail.com>
- - - - -
1 changed file:
- modules/gui/macosx/extensions/NSView+VLCAdditions.m
Changes:
=====================================
modules/gui/macosx/extensions/NSView+VLCAdditions.m
=====================================
@@ -30,7 +30,8 @@
- (BOOL)shouldShowDarkAppearance
{
if (@available(macOS 10_14, *)) {
- if ([self.effectiveAppearance.name isEqualToString:NSAppearanceNameDarkAqua]) {
+ if ([self.effectiveAppearance.name isEqualToString:NSAppearanceNameDarkAqua] ||
+ [self.effectiveAppearance.name isEqualToString:NSAppearanceNameVibrantDark]) {
return YES;
}
}
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4989505a7a283fc4befc11cf21b90c1f481caa1a
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/4989505a7a283fc4befc11cf21b90c1f481caa1a
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list