[vlc-commits] [Git][videolan/vlc][master] macosx: Apply dark mode when video playback is visible on library window

Steve Lhomme (@robUx4) gitlab at videolan.org
Mon Aug 18 15:46:32 UTC 2025



Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
046196c4 by Claudio Cambra at 2025-08-18T15:33:01+00:00
macosx: Apply dark mode when video playback is visible on library window

Signed-off-by: Claudio Cambra <developer at claudiocambra.com>

- - - - -


1 changed file:

- modules/gui/macosx/library/VLCLibraryWindow.m


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryWindow.m
=====================================
@@ -573,6 +573,17 @@ static void addShadow(NSImageView *__unsafe_unretained imageView)
         return;
     }
 
+    NSAppearance *darkAppearance = nil;
+    if (@available(macOS 10.14, *)) {
+        darkAppearance = [NSAppearance appearanceNamed:NSAppearanceNameDarkAqua];
+    } else {
+        darkAppearance = [NSAppearance appearanceNamed:NSAppearanceNameVibrantDark];
+    }
+
+    if (darkAppearance) {
+        self.appearance = darkAppearance;
+    }
+
     if (_acquiredVideoView) {
         [self.videoViewController returnVideoView:_acquiredVideoView];
         _acquiredVideoView = nil;
@@ -592,6 +603,8 @@ static void addShadow(NSImageView *__unsafe_unretained imageView)
 
 - (void)disableVideoPlaybackAppearance
 {
+    self.appearance = nil;
+
     [self makeFirstResponder:self.splitViewController.multifunctionSidebarViewController.view];
     [VLCMain.sharedInstance.voutProvider updateWindowLevelForHelperWindows:NSNormalWindowLevel];
 



View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/046196c437ded78341c1a9297fe549b648c0d542

-- 
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/046196c437ded78341c1a9297fe549b648c0d542
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