Changeset 3800


Ignore:
Timestamp:
Nov 11, 2007, 9:45:27 PM (15 years ago)
Author:
livings124
Message:

make the availability bar red

Location:
trunk/macosx
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/CTGradient/CTGradientAdditions.h

    r2851 r3800  
    3939+ (CTGradient *)progressLightGreenGradient;
    4040+ (CTGradient *)progressDarkGreenGradient;
     41+ (CTGradient *)progressRedGradient;
    4142+ (CTGradient *)progressYellowGradient;
    4243+ (CTGradient *)progressTransparentGradient;
  • trunk/macosx/CTGradient/CTGradientAdditions.m

    r2851 r3800  
    391391}
    392392
     393+ (CTGradient *)progressRedGradient
     394{
     395 CTGradient *newInstance = [[[self class] alloc] init];
     396   
     397        CTGradientElement color1;
     398    color1.red = 0.9;
     399        color1.green = color1.blue  = 0.5;
     400    color1.alpha = 1.00;
     401    color1.position = 0;
     402   
     403    CTGradientElement color2;
     404    color2.red = 0.9;
     405        color2.green = color2.blue  = 0.4;
     406    color2.alpha = 1.00;
     407    color2.position = 0.5;
     408   
     409    CTGradientElement color3;
     410    color3.red = 0.9;
     411        color3.green = color3.blue  = 0.5;
     412    color3.alpha = 1.00;
     413    color3.position = 0.5;
     414   
     415    CTGradientElement color4;
     416    color4.red = 0.9;
     417        color4.green = color4.blue  = 0.5;
     418    color4.alpha = 1.00;
     419    color4.position = 1;   
     420    [newInstance addElement:&color1];
     421    [newInstance addElement:&color2];
     422    [newInstance addElement:&color3];
     423    [newInstance addElement:&color4];
     424   
     425    return [newInstance autorelease];
     426
     427}
     428
    393429+ (CTGradient *)progressYellowGradient
    394430{
  • trunk/macosx/TorrentCell.h

    r3730 r3800  
    3434    NSColor * fBarOverlayColor;
    3535    CTGradient * fWhiteGradient, * fGrayGradient, * fLightGrayGradient, * fBlueGradient, * fDarkBlueGradient,
    36                 * fGreenGradient, * fLightGreenGradient, * fDarkGreenGradient, * fYellowGradient, * fTransparentGradient;
     36                * fGreenGradient, * fLightGreenGradient, * fDarkGreenGradient, * fYellowGradient, * fRedGradient,
     37                * fTransparentGradient;
    3738   
    3839    NSColor * fGrayColor, * fBlueColor, * fBlue1Color, * fBlue2Color, * fBlue3Color, * fBlue4Color;
  • trunk/macosx/TorrentCell.m

    r3793 r3800  
    345345                    notAvailableRect.size.width = notAvailableWidth;
    346346                   
    347                     if (!fYellowGradient)
    348                         fYellowGradient = [[CTGradient progressYellowGradient] retain];
    349                     [fYellowGradient fillRect: notAvailableRect angle: -90];
     347                    if (!fRedGradient)
     348                        fRedGradient = [[CTGradient progressRedGradient] retain];
     349                    [fRedGradient fillRect: notAvailableRect angle: -90];
    350350                }
    351351            }
Note: See TracChangeset for help on using the changeset viewer.