Changeset 2128


Ignore:
Timestamp:
Jun 17, 2007, 1:42:07 PM (15 years ago)
Author:
livings124
Message:

update the "won't download this section" progress bar color

Location:
branches/file_selection/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/file_selection/macosx/CTGradient/CTGradientAdditions.h

    r1919 r2128  
    3333+ (CTGradient *)progressWhiteGradient;
    3434+ (CTGradient *)progressGrayGradient;
     35+ (CTGradient *)progressLightGrayGradient;
    3536+ (CTGradient *)progressBlueGradient;
    3637+ (CTGradient *)progressGreenGradient;
  • branches/file_selection/macosx/CTGradient/CTGradientAdditions.m

    r2081 r2128  
    159159}
    160160
     161+ (CTGradient *)progressLightGrayGradient
     162{
     163    CTGradient *newInstance = [[[self class] alloc] init];
     164   
     165    CTGradientElement color1;
     166    color1.red = color1.green = color1.blue  = 0.87;
     167    color1.alpha = 1.00;
     168    color1.position = 0;
     169   
     170    CTGradientElement color2;
     171    color2.red = color2.green = color2.blue  = 0.754;
     172    color2.alpha = 1.00;
     173    color2.position = 0.5;
     174   
     175    CTGradientElement color3;
     176    color3.red = color3.green = color3.blue  = 0.87;
     177    color3.alpha = 1.00;
     178    color3.position = 0.5;
     179   
     180    CTGradientElement color4;
     181    color4.red = color4.green = color4.blue  = 0.87;
     182    color4.alpha = 1.00;
     183    color4.position = 1;
     184   
     185    [newInstance addElement:&color1];
     186    [newInstance addElement:&color2];
     187    [newInstance addElement:&color3];
     188    [newInstance addElement:&color4];
     189   
     190    return [newInstance autorelease];
     191}
     192
    161193+ (CTGradient *)progressBlueGradient
    162194{
  • branches/file_selection/macosx/TorrentCell.m

    r2088 r2128  
    4949        fWhiteGradient = [[CTGradient progressWhiteGradient] retain];
    5050        fGrayGradient = [[CTGradient progressGrayGradient] retain];
    51         fLightGrayGradient = [[CTGradient unifiedNormalGradient] retain];
     51        fLightGrayGradient = [[CTGradient progressLightGrayGradient] retain];
    5252        fBlueGradient = [[CTGradient progressBlueGradient] retain];
    5353        fGreenGradient = [[CTGradient progressGreenGradient] retain];
Note: See TracChangeset for help on using the changeset viewer.