Changeset 10432


Ignore:
Timestamp:
Apr 1, 2010, 2:34:29 AM (12 years ago)
Author:
livings124
Message:

make text fields truncate in the middle instead of end

Location:
trunk/macosx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/DragOverlayView.m

    r10029 r10432  
    4343       
    4444        NSMutableParagraphStyle * paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
    45         [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingTail];
     45        [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingMiddle];
    4646       
    4747        fMainLineAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
  • trunk/macosx/FileNameCell.m

    r10206 r10432  
    5555    {
    5656        NSMutableParagraphStyle * paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
    57         [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingTail];
     57        [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingMiddle];
    5858       
    5959        fTitleAttributes = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
  • trunk/macosx/ProgressGradients.m

    r10426 r10432  
    2929+ (NSGradient *) progressGradientForRed: (CGFloat) redComponent green: (CGFloat) greenComponent blue: (CGFloat) blueComponent
    3030{
    31     const CGFloat alpha = [[NSUserDefaults standardUserDefaults] boolForKey: @"SmallView"] ? 0.28 : 1.0;
     31    const CGFloat alpha = [[NSUserDefaults standardUserDefaults] boolForKey: @"SmallView"] ? 0.27 : 1.0;
    3232   
    3333    NSColor * baseColor = [NSColor colorWithCalibratedRed: redComponent green: greenComponent blue: blueComponent alpha: alpha];
  • trunk/macosx/TorrentCell.m

    r10426 r10432  
    100100       
    101101        NSMutableParagraphStyle * paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
    102         [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingTail];
     102        [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingMiddle];
    103103       
    104104        fTitleAttributes = [[NSMutableDictionary alloc] initWithCapacity: 3];
Note: See TracChangeset for help on using the changeset viewer.