Steve Lhomme pushed to branch master at VideoLAN / VLC


Commits:
2ddd86c8 by Claudio Cambra at 2024-05-13T11:16:54+00:00
macosx: Use default NSColor for header texts for collection view supplementary 
element view

Signed-off-by: Claudio Cambra <[email protected]>

- - - - -


1 changed file:

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


Changes:

=====================================
modules/gui/macosx/library/VLCLibraryCollectionViewSupplementaryElementView.m
=====================================
@@ -39,7 +39,7 @@ NSString *VLCLibrarySupplementaryElementViewIdentifier = 
@"VLCLibrarySupplementa
     self = [super initWithFrame:frameRect];
     if (self) {
         self.font = NSFont.VLClibrarySectionHeaderFont;
-        self.textColor = self.shouldShowDarkAppearance ? 
NSColor.VLClibraryDarkTitleColor : NSColor.VLClibraryLightTitleColor;
+        self.textColor = NSColor.headerTextColor;
         self.editable = NO;
         self.selectable = NO;
         self.bordered = NO;
@@ -50,9 +50,4 @@ NSString *VLCLibrarySupplementaryElementViewIdentifier = 
@"VLCLibrarySupplementa
     return self;
 }
 
-- (void)viewDidChangeEffectiveAppearance
-{
-    self.textColor = self.shouldShowDarkAppearance ? 
NSColor.VLClibraryDarkTitleColor : NSColor.VLClibraryLightTitleColor;
-}
-
 @end



View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/2ddd86c84418688ae977e981c5be31db40e470e2

-- 
This project does not include diff previews in email notifications.
View it on GitLab: 
https://code.videolan.org/videolan/vlc/-/commit/2ddd86c84418688ae977e981c5be31db40e470e2
You're receiving this email because of your account on code.videolan.org.


VideoLAN code repository instance
_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to