Changeset 3738


Ignore:
Timestamp:
Nov 6, 2007, 11:55:51 PM (15 years ago)
Author:
livings124
Message:

make the filter bar color match leopard's

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/Controller.m

    r3734 r3738  
    18561856        [tempTorrents setArray: fTorrents];
    18571857   
    1858     //set buttons with counts
     1858    //set button tooltips
    18591859    #warning make better
    18601860    [fNoFilterButton setToolTip: [fTorrents count] == 1 ? NSLocalizedString(@"1 Transfer", "Filter Button -> tool tip")
  • trunk/macosx/FilterBarView.h

    r3732 r3738  
    2424
    2525#import <Cocoa/Cocoa.h>
    26 #import "ImageBackgroundView.h"
    2726
    28 @interface FilterBarView : ImageBackgroundView
     27@class CTGradient;
     28
     29@interface FilterBarView : NSView
    2930{
     31    CTGradient * fGradient;
    3032}
    3133
  • trunk/macosx/FilterBarView.m

    r3732 r3738  
    2323 *****************************************************************************/
    2424
    25 #warning needed?
    26 
    2725#import "FilterBarView.h"
     26#import "CTGradient.h"
    2827
    2928@implementation FilterBarView
     
    3130- (void) awakeFromNib
    3231{
    33     [self setBackgroundImage: [NSImage imageNamed: @"FilterBarBackground.png"]];
     32    NSColor * beginningColor = [NSColor colorWithCalibratedRed: 208.0/255.0 green: 208.0/255.0 blue: 208.0/255.0 alpha: 1.0];
     33    NSColor * endingColor = [NSColor colorWithCalibratedRed: 233.0/255.0 green: 233.0/255.0 blue: 233.0/255.0 alpha: 1.0];
     34    fGradient = [[CTGradient gradientWithBeginningColor: beginningColor endingColor: endingColor] retain];
     35}
     36
     37- (BOOL) isOpaque
     38{
     39    return YES;
     40}
     41
     42- (void) drawRect: (NSRect) rect
     43{
     44    NSRect bounds = [self bounds];
     45    [fGradient fillRect: rect angle: 90];
    3446}
    3547
Note: See TracChangeset for help on using the changeset viewer.