From e53308f9342d911a9d3e8f4d1eeba6e53fabc0ab Mon Sep 17 00:00:00 2001 From: Damiano Galassi Date: Tue, 3 May 2016 18:47:14 +0200 Subject: MacGui: use AVFoundation as the first option for the preview playback. Add volume and tracks controls to the player hud. --- macosx/HBHUDButtonCell.m | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'macosx/HBHUDButtonCell.m') diff --git a/macosx/HBHUDButtonCell.m b/macosx/HBHUDButtonCell.m index 3464a7499..a5e4119ec 100644 --- a/macosx/HBHUDButtonCell.m +++ b/macosx/HBHUDButtonCell.m @@ -10,9 +10,14 @@ - (NSRect)drawTitle:(NSAttributedString *)title withFrame:(NSRect)frame inView:(NSView *)controlView { - NSAttributedString *attrLabel = [[NSAttributedString alloc] initWithString:[title string] + NSAttributedString *attrLabel = title; + + if (!NSClassFromString(@"NSVisualEffectView")) + { + attrLabel = [[NSAttributedString alloc] initWithString:[title string] attributes:@{ NSFontAttributeName:[NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:self.controlSize]], NSForegroundColorAttributeName: [NSColor whiteColor]}]; + } return [super drawTitle:attrLabel withFrame:frame inView:controlView]; } -- cgit v1.2.3