Changeset 3739


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

Location:
trunk/macosx
Files:
2 deleted
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/FilterBarView.m

    r3738 r3739  
    2626#import "CTGradient.h"
    2727
     28#warning combine
     29
    2830@implementation FilterBarView
    2931
     
    4244- (void) drawRect: (NSRect) rect
    4345{
    44     NSRect bounds = [self bounds];
    4546    [fGradient fillRect: rect angle: 90];
    4647}
  • trunk/macosx/ImageBackgroundView.m

    r3582 r3739  
    2222 * DEALINGS IN THE SOFTWARE.
    2323 *****************************************************************************/
     24
     25#warning class needed?
    2426
    2527#import "ImageBackgroundView.h"
  • trunk/macosx/StatusBarView.h

    r3151 r3739  
    2424
    2525#import <Cocoa/Cocoa.h>
    26 #import "ImageBackgroundView.h"
    2726
    28 @interface StatusBarView : ImageBackgroundView
     27@class CTGradient;
     28
     29@interface StatusBarView : NSView
    2930{
     31    CTGradient * fGradient;
    3032}
     33
    3134@end
  • 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.