Commit 5f4b00e0 authored by Marvin Scholz's avatar Marvin Scholz Committed by Felix Paul Kühne

macosx: Correct VLCHUDRadiobuttonCell state colors

Signed-off-by: Felix Paul Kühne's avatarFelix Paul Kühne <fkuehne@videolan.org>
parent 5c924bf3
......@@ -92,4 +92,21 @@
}
}
- (NSRect)drawTitle:(NSAttributedString *)title withFrame:(NSRect)frame inView:(NSView *)controlView
{
NSMutableAttributedString *coloredTitle = [[NSMutableAttributedString alloc]
initWithAttributedString:title];
if (self.isEnabled) {
[coloredTitle addAttribute:NSForegroundColorAttributeName
value:[NSColor whiteColor]
range:NSMakeRange(0, coloredTitle.length)];
} else {
[coloredTitle addAttribute:NSForegroundColorAttributeName
value:[NSColor grayColor]
range:NSMakeRange(0, coloredTitle.length)];
}
return [super drawTitle:coloredTitle withFrame:frame inView:controlView];
}
@end
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment