Skip to content
Snippets Groups Projects
Commit 2ddd86c8 authored by Claudio Cambra's avatar Claudio Cambra Committed by Steve Lhomme
Browse files

macosx: Use default NSColor for header texts for collection view supplementary element view


Signed-off-by: default avatarClaudio Cambra <developer@claudiocambra.com>
parent 7f94bd85
No related branches found
No related tags found
1 merge request!5378macosx: Fix header text colours in home view
Pipeline #469709 passed with warnings with stages
in 39 minutes and 27 seconds
......@@ -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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment