Changeset 3739
- Timestamp:
- Nov 7, 2007, 12:09:36 AM (15 years ago)
- Location:
- trunk/macosx
- Files:
-
- 2 deleted
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/FilterBarView.m
r3738 r3739 26 26 #import "CTGradient.h" 27 27 28 #warning combine 29 28 30 @implementation FilterBarView 29 31 … … 42 44 - (void) drawRect: (NSRect) rect 43 45 { 44 NSRect bounds = [self bounds];45 46 [fGradient fillRect: rect angle: 90]; 46 47 } -
trunk/macosx/ImageBackgroundView.m
r3582 r3739 22 22 * DEALINGS IN THE SOFTWARE. 23 23 *****************************************************************************/ 24 25 #warning class needed? 24 26 25 27 #import "ImageBackgroundView.h" -
trunk/macosx/StatusBarView.h
r3151 r3739 24 24 25 25 #import <Cocoa/Cocoa.h> 26 #import "ImageBackgroundView.h"27 26 28 @interface StatusBarView : ImageBackgroundView 27 @class CTGradient; 28 29 @interface StatusBarView : NSView 29 30 { 31 CTGradient * fGradient; 30 32 } 33 31 34 @end -
trunk/macosx/StatusBarView.m
r3671 r3739 24 24 25 25 #import "StatusBarView.h" 26 #import "CTGradient.h" 27 28 #warning combine 26 29 27 30 @implementation StatusBarView … … 29 32 - (void) awakeFromNib 30 33 { 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]; 32 37 } 33 38 34 39 - (BOOL) isOpaque 35 40 { 36 return [[self window] isMainWindow];41 return YES; 37 42 } 38 43 39 44 - (void) drawRect: (NSRect) rect 40 45 { 41 if ([[self window] isMainWindow]) 42 [super drawRect: rect]; 46 [fGradient fillRect: rect angle: 90]; 43 47 } 44 48
Note: See TracChangeset
for help on using the changeset viewer.