Changeset 11456


Ignore:
Timestamp:
Dec 4, 2010, 5:14:52 PM (11 years ago)
Author:
livings124
Message:

lighten the status bar color a tiny bit

Location:
trunk/macosx
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/StatusBarView.h

    r11453 r11456  
    2828{
    2929    BOOL fIsFilter;
    30     NSGradient * fInactiveGradient, * fFilterGradient;
     30    NSGradient * fInactiveGradient, * fStatusGradient, * fFilterGradient;
    3131    NSColor * fGrayBorderColor;
    3232}
  • trunk/macosx/StatusBarView.m

    r11454 r11456  
    4444        fInactiveGradient = [[NSGradient alloc] initWithStartingColor: lightColor endingColor: darkColor];
    4545       
     46        lightColor = [NSColor colorWithCalibratedRed: 160.0/255.0 green: 160.0/255.0 blue: 160.0/255.0 alpha: 1.0];
     47        darkColor = [NSColor colorWithCalibratedRed: 155.0/255.0 green: 155.0/255.0 blue: 155.0/255.0 alpha: 1.0];
     48        fStatusGradient = [[NSGradient alloc] initWithStartingColor: lightColor endingColor: darkColor];
     49       
    4650        lightColor = [NSColor colorWithCalibratedRed: 235.0/255.0 green: 235.0/255.0 blue: 235.0/255.0 alpha: 1.0];
    4751        darkColor = [NSColor colorWithCalibratedRed: 205.0/255.0 green: 205.0/255.0 blue: 205.0/255.0 alpha: 1.0];
     
    5963{
    6064    [fGrayBorderColor release];
     65    [fStatusGradient release];
    6166    [fInactiveGradient release];
    6267    [fFilterGradient release];
     
    117122       
    118123        NSInteger count = 0;
    119         NSRect gridRects[active ? 3 : 2];
    120         NSColor * colorRects[active ? 3 : 2];
     124        NSRect gridRects[2];
     125        NSColor * colorRects[2];
    121126       
    122127        NSRect lineBorderRect = NSMakeRect(NSMinX(rect), NSHeight([self bounds]) - 1.0, NSWidth(rect), 1.0);
     
    146151       
    147152        if (active)
    148         {
    149             gridRects[count] = rect;
    150             colorRects[count] = [NSColor colorWithCalibratedWhite: 0.59 alpha: 1.0];
    151             ++count;
    152         }
     153            [fStatusGradient drawInRect: rect angle: 270.0];
    153154        else
    154155            [fInactiveGradient drawInRect: rect angle: 270.0];
Note: See TracChangeset for help on using the changeset viewer.