]> granicus.if.org Git - transmission/commitdiff
make text fields truncate in the middle instead of end
authorMitchell Livingston <livings124@transmissionbt.com>
Thu, 1 Apr 2010 02:34:29 +0000 (02:34 +0000)
committerMitchell Livingston <livings124@transmissionbt.com>
Thu, 1 Apr 2010 02:34:29 +0000 (02:34 +0000)
macosx/DragOverlayView.m
macosx/FileNameCell.m
macosx/ProgressGradients.m
macosx/TorrentCell.m

index 2affa725a39d94faeb8923b3f2148d420843f1a5..308439b35de452d2b55c167c0cd7903185cdbb41 100644 (file)
@@ -42,7 +42,7 @@
                 * smallFont = [NSFont systemFontOfSize: 14.0];
         
         NSMutableParagraphStyle * paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
-        [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingTail];
+        [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingMiddle];
         
         fMainLineAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
                                 [NSColor whiteColor], NSForegroundColorAttributeName,
index df08a742ff9d6cd54844cd0ddf312320e1d3e179..a4abd529b16a24852ffe015660d0f2c8b52623d0 100644 (file)
@@ -54,7 +54,7 @@
     if ((self = [super init]))
     {
         NSMutableParagraphStyle * paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
-        [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingTail];
+        [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingMiddle];
         
         fTitleAttributes = [[NSMutableDictionary alloc] initWithObjectsAndKeys:
                             [NSFont messageFontOfSize: 12.0], NSFontAttributeName,
index 8f824c15af430907177bdaae9a4ef562db23237f..6b11a6d47d396e0b13db561b68a2f1f3e4bf46b4 100644 (file)
@@ -28,7 +28,7 @@
 
 + (NSGradient *) progressGradientForRed: (CGFloat) redComponent green: (CGFloat) greenComponent blue: (CGFloat) blueComponent
 {
-    const CGFloat alpha = [[NSUserDefaults standardUserDefaults] boolForKey: @"SmallView"] ? 0.28 : 1.0;
+    const CGFloat alpha = [[NSUserDefaults standardUserDefaults] boolForKey: @"SmallView"] ? 0.27 : 1.0;
     
     NSColor * baseColor = [NSColor colorWithCalibratedRed: redComponent green: greenComponent blue: blueComponent alpha: alpha];
     
index eef5756010ba289f2e758fac455f746224523f5f..0a293e39c270bf08d393dc2fdf82e7ffdb98c6e5 100644 (file)
@@ -99,7 +99,7 @@
         fDefaults = [NSUserDefaults standardUserDefaults];
         
         NSMutableParagraphStyle * paragraphStyle = [[NSParagraphStyle defaultParagraphStyle] mutableCopy];
-        [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingTail];
+        [paragraphStyle setLineBreakMode: NSLineBreakByTruncatingMiddle];
         
         fTitleAttributes = [[NSMutableDictionary alloc] initWithCapacity: 3];
         [fTitleAttributes setObject: [NSFont messageFontOfSize: 12.0] forKey: NSFontAttributeName];