]> granicus.if.org Git - transmission/commitdiff
display the drag window's text in the system font as opposed to hardcoding "Lucida...
authorMitchell Livingston <livings124@transmissionbt.com>
Thu, 28 Jan 2010 03:48:21 +0000 (03:48 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Thu, 28 Jan 2010 03:48:21 +0000 (03:48 +0000)
macosx/DragOverlayView.m

index 1ceb15110f1575ed810565c1288b7b4cd282390c..2affa725a39d94faeb8923b3f2148d420843f1a5 100644 (file)
@@ -38,9 +38,8 @@
         [stringShadow setShadowOffset: NSMakeSize(2.0, -2.0)];
         [stringShadow setShadowBlurRadius: 4.0];
         
-        NSFont * bigFont = [[NSFontManager sharedFontManager] convertFont:
-                                [NSFont fontWithName: @"Lucida Grande" size: 18.0] toHaveTrait: NSBoldFontMask],
-                * smallFont = [NSFont fontWithName: @"Lucida Grande" size: 14.0];
+        NSFont * bigFont = [NSFont boldSystemFontOfSize: 18.0],
+                * smallFont = [NSFont systemFontOfSize: 14.0];
         
         NSMutableParagraphStyle * paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
         [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingTail];
     
     //create badge
     const NSRect badgeRect = NSMakeRect(0.0, 0.0, 325.0, 84.0);
-    NSBezierPath * bp = [NSBezierPath bezierPathWithRoundedRect: badgeRect xRadius: 15.0 yRadius: 15.0];
     
     fBadge = [[NSImage alloc] initWithSize: badgeRect.size];
     [fBadge lockFocus];
     
+    NSBezierPath * bp = [NSBezierPath bezierPathWithRoundedRect: badgeRect xRadius: 15.0 yRadius: 15.0];
     [[NSColor colorWithCalibratedWhite: 0.0 alpha: 0.75] set];
     [bp fill];