blob: 8f6228f2259117cf1ebb818efa7025d04b6349de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
//
// HBHUDButtonCell.m
// HandBrake
//
// Created by Damiano Galassi on 17/08/14.
//
//
#import "HBHUDButtonCell.h"
@implementation HBHUDButtonCell
- (NSRect)drawTitle:(NSAttributedString *)title withFrame:(NSRect)frame inView:(NSView *)controlView
{
NSAttributedString *attrLabel = [[[NSAttributedString alloc] initWithString:[title string]
attributes:@{ NSFontAttributeName:[NSFont systemFontOfSize:[NSFont systemFontSizeForControlSize:self.controlSize]],
NSForegroundColorAttributeName: [NSColor whiteColor]}] autorelease];
return [super drawTitle:attrLabel withFrame:frame inView:controlView];
}
@end
|