Ignore:
Timestamp:
Jan 28, 2010, 3:48:21 AM (12 years ago)
Author:
livings124
Message:

display the drag window's text in the system font as opposed to hardcoding "Lucida Grande"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/DragOverlayView.m

    r10028 r10029  
    3939        [stringShadow setShadowBlurRadius: 4.0];
    4040       
    41         NSFont * bigFont = [[NSFontManager sharedFontManager] convertFont:
    42                                 [NSFont fontWithName: @"Lucida Grande" size: 18.0] toHaveTrait: NSBoldFontMask],
    43                 * smallFont = [NSFont fontWithName: @"Lucida Grande" size: 14.0];
     41        NSFont * bigFont = [NSFont boldSystemFontOfSize: 18.0],
     42                * smallFont = [NSFont systemFontOfSize: 14.0];
    4443       
    4544        NSMutableParagraphStyle * paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
     
    7877    //create badge
    7978    const NSRect badgeRect = NSMakeRect(0.0, 0.0, 325.0, 84.0);
    80     NSBezierPath * bp = [NSBezierPath bezierPathWithRoundedRect: badgeRect xRadius: 15.0 yRadius: 15.0];
    8179   
    8280    fBadge = [[NSImage alloc] initWithSize: badgeRect.size];
    8381    [fBadge lockFocus];
    8482   
     83    NSBezierPath * bp = [NSBezierPath bezierPathWithRoundedRect: badgeRect xRadius: 15.0 yRadius: 15.0];
    8584    [[NSColor colorWithCalibratedWhite: 0.0 alpha: 0.75] set];
    8685    [bp fill];
Note: See TracChangeset for help on using the changeset viewer.