diff options
author | Damiano Galassi <[email protected]> | 2016-05-03 18:47:14 +0200 |
---|---|---|
committer | Damiano Galassi <[email protected]> | 2016-05-03 18:47:14 +0200 |
commit | e53308f9342d911a9d3e8f4d1eeba6e53fabc0ab (patch) | |
tree | f65f5390d9174276022790a308660e17d7a3601f /macosx/HBHUDButtonCell.m | |
parent | 4ab21a0ca630dc4bac79149a6eec598921899fe5 (diff) |
MacGui: use AVFoundation as the first option for the preview playback. Add volume and tracks controls to the player hud.
Diffstat (limited to 'macosx/HBHUDButtonCell.m')
-rw-r--r-- | macosx/HBHUDButtonCell.m | 7 |
1 files changed, 6 insertions, 1 deletions
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]; } |