Ignore:
Timestamp:
Nov 7, 2007, 12:09:36 AM (15 years ago)
Author:
livings124
Message:

update status bar to use the same gradient as the filter bar, and remove the corresponding images

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/StatusBarView.m

    r3671 r3739  
    2424
    2525#import "StatusBarView.h"
     26#import "CTGradient.h"
     27
     28#warning combine
    2629
    2730@implementation StatusBarView
     
    2932- (void) awakeFromNib
    3033{
    31     [self setBackgroundImage: [NSImage imageNamed: @"StatusBarBackground.png"]];
     34    NSColor * beginningColor = [NSColor colorWithCalibratedRed: 208.0/255.0 green: 208.0/255.0 blue: 208.0/255.0 alpha: 1.0];
     35    NSColor * endingColor = [NSColor colorWithCalibratedRed: 233.0/255.0 green: 233.0/255.0 blue: 233.0/255.0 alpha: 1.0];
     36    fGradient = [[CTGradient gradientWithBeginningColor: beginningColor endingColor: endingColor] retain];
    3237}
    3338
    3439- (BOOL) isOpaque
    3540{
    36     return [[self window] isMainWindow];
     41    return YES;
    3742}
    3843
    3944- (void) drawRect: (NSRect) rect
    4045{
    41     if ([[self window] isMainWindow])
    42         [super drawRect: rect];
     46    [fGradient fillRect: rect angle: 90];
    4347}
    4448
Note: See TracChangeset for help on using the changeset viewer.