summaryrefslogtreecommitdiffstats
path: root/macosx/HBHUDButtonCell.m
diff options
context:
space:
mode:
authorritsuka <[email protected]>2014-08-19 16:38:33 +0000
committerritsuka <[email protected]>2014-08-19 16:38:33 +0000
commita37c2119baece04d28cd75816cd31270e317197a (patch)
tree567c00bd0ca0e34a0e0e0da978bf442797ec490e /macosx/HBHUDButtonCell.m
parent5c5d825990ac79b9e7faa2d79a3edbd8b6232eea (diff)
MacGui: added support for NLMeans denoise. Added the HBFilters class to store the filters settings, previously they were stored directly in the HBPictureController window controller.
Removed the filter tab animations for now, they will be added back later. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6319 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'macosx/HBHUDButtonCell.m')
-rw-r--r--macosx/HBHUDButtonCell.m22
1 files changed, 22 insertions, 0 deletions
diff --git a/macosx/HBHUDButtonCell.m b/macosx/HBHUDButtonCell.m
new file mode 100644
index 000000000..8f6228f22
--- /dev/null
+++ b/macosx/HBHUDButtonCell.m
@@ -0,0 +1,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