diff options
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]; } |