-
Notifications
You must be signed in to change notification settings - Fork 1
/
JRLRFooter.m
47 lines (34 loc) · 1.07 KB
/
JRLRFooter.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
//
// JRLRFooter.m
// SproutedInterface
//
// Created by Philip Dow on 7/30/05.
// Copyright Sprouted. All rights reserved.
// Inquiries should be directed to [email protected]
//
#import <SproutedInterface/JRLRFooter.h>
#import <SproutedUtilities/NSBezierPath_AMShading.h>
#import <SproutedUtilities/NSBezierPath_AMShading.h>
@implementation JRLRFooter
- (id)initWithFrame:(NSRect)frame {
self = [super initWithFrame:frame];
if (self) {
// Initialization code here.
}
return self;
}
- (void) dealloc {
[super dealloc];
}
#pragma mark -
- (void)drawRect:(NSRect)rect {
// Drawing code here.
NSRect bds = [self bounds];
NSColor *gradientEnd = [NSColor colorWithCalibratedRed:254.0/255.0 green:254.0/255.0 blue:254.0/255.0 alpha:1.0];
NSColor *gradientStart = [NSColor colorWithCalibratedRed:235.0/255.0 green:235.0/255.0 blue:235.0/255.0 alpha:1.0];
[[NSBezierPath bezierPathWithRect:bds]
linearGradientFillWithStartColor:gradientStart endColor:gradientEnd];
[[NSColor lightGrayColor] set];
NSFrameRect([self bounds]);
}
@end