Changeset 6264


Ignore:
Timestamp:
Jun 30, 2008, 1:56:17 AM (13 years ago)
Author:
livings124
Message:

adjust the progress colors corresponding to #1061

File:
1 edited

Legend:

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

    r6252 r6264  
    3030{
    3131    CTGradientElement color1;
    32     color1.red = redComponent * 0.95;
    33     color1.green = greenComponent * 0.95;
    34     color1.blue = blueComponent * 0.95;
     32    color1.red = redComponent;
     33    color1.green = greenComponent;
     34    color1.blue = blueComponent;
    3535    color1.alpha = 1.0;
    3636    color1.position = 0.0;
    3737   
    3838    CTGradientElement color2;
    39     color2.red = redComponent;
    40     color2.green = greenComponent;
    41     color2.blue = blueComponent;
     39    color2.red = redComponent * 0.95;
     40    color2.green = greenComponent * 0.95;
     41    color2.blue = blueComponent * 0.95;
    4242    color2.alpha = 1.0;
    4343    color2.position = 0.5;
    4444   
    4545    CTGradientElement color3;
    46     color3.red = redComponent * 0.8;
    47     color3.green = greenComponent * 0.8;
    48     color3.blue = blueComponent * 0.8;
     46    color3.red = redComponent * 0.85;
     47    color3.green = greenComponent * 0.85;
     48    color3.blue = blueComponent * 0.85;
    4949    color3.alpha = 1.0;
    5050    color3.position = 0.5;
     
    9494{
    9595    if (!fProgressBlueGradient)
    96         fProgressBlueGradient = [[[self class] progressGradientForRed: 0.373 green: 0.698 blue: 0.972] retain];
     96        fProgressBlueGradient = [[[self class] progressGradientForRed: 0.35 green: 0.67 blue: 0.98] retain];
    9797    return fProgressBlueGradient;
    9898}
     
    110110{
    111111    if (!fProgressGreenGradient)
    112         fProgressGreenGradient = [[[self class] progressGradientForRed: 0.384 green: 0.847 blue: 0.310] retain];
     112        fProgressGreenGradient = [[[self class] progressGradientForRed: 0.44 green: 0.89 blue: 0.40] retain];
    113113    return fProgressGreenGradient;
    114114}
     
    118118{
    119119    if (!fProgressLightGreenGradient)
    120         fProgressLightGreenGradient = [[[self class] progressGradientForRed: 0.780 green: 0.894 blue: 0.729] retain];
     120        fProgressLightGreenGradient = [[[self class] progressGradientForRed: 0.62 green: 0.99 blue: 0.58] retain];
    121121    return fProgressLightGreenGradient;
    122122}
Note: See TracChangeset for help on using the changeset viewer.