Changeset 10401


Ignore:
Timestamp:
Mar 20, 2010, 3:51:29 AM (12 years ago)
Author:
livings124
Message:

decrease the alpha of the pieces bar in compact view (don't show at all in compact view on 10.5)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentCell.m

    r10400 r10401  
    499499- (void) drawBar: (NSRect) barRect
    500500{
     501    const BOOL minimal = [fDefaults boolForKey: @"SmallView"];
     502   
    501503    const CGFloat piecesBarPercent = [(TorrentTableView *)[self controlView] piecesBarPercent];
    502     if (piecesBarPercent > 0.0)
     504    if (piecesBarPercent > 0.0 && ([NSApp isOnSnowLeopardOrBetter] || !minimal))
    503505    {
    504506        NSRect piecesBarRect, regularBarRect;
     
    516518    }
    517519   
    518     if (![fDefaults boolForKey: @"SmallView"])
     520    if (!minimal)
    519521    {
    520522        [fBarBorderColor set];
     
    640642   
    641643    //actually draw image
    642     [bitmap drawInRect: barRect];
     644    if ([NSApp isOnSnowLeopardOrBetter])
     645        [bitmap drawInRect: barRect fromRect: NSZeroRect operation: NSCompositeSourceOver
     646            fraction: ([fDefaults boolForKey: @"SmallView"] ? 0.125 : 1.0) respectFlipped: YES hints: nil];
     647    else
     648        [bitmap drawInRect: barRect];
     649
    643650    [bitmap release];
    644651}
Note: See TracChangeset for help on using the changeset viewer.