1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-21 21:57:01 +00:00

tweak the inspector button gradient

This commit is contained in:
Mitchell Livingston 2011-01-30 02:52:03 +00:00
parent 8f64909bc3
commit 8294f1c34c
2 changed files with 4 additions and 4 deletions

View file

@ -30,8 +30,8 @@
{ {
if ((self = [super initWithFrame: rect])) if ((self = [super initWithFrame: rect]))
{ {
NSColor * lightColor = [NSColor colorWithCalibratedRed: 255.0/255.0 green: 255.0/255.0 blue: 255.0/255.0 alpha: 1.0]; NSColor * lightColor = [NSColor colorWithCalibratedRed: 245.0/255.0 green: 245.0/255.0 blue: 245.0/255.0 alpha: 1.0];
NSColor * darkColor = [NSColor colorWithCalibratedRed: 225.0/255.0 green: 225.0/255.0 blue: 225.0/255.0 alpha: 1.0]; NSColor * darkColor = [NSColor colorWithCalibratedRed: 215.0/255.0 green: 215.0/255.0 blue: 215.0/255.0 alpha: 1.0];
fGradient = [[NSGradient alloc] initWithStartingColor: lightColor endingColor: darkColor]; fGradient = [[NSGradient alloc] initWithStartingColor: lightColor endingColor: darkColor];
} }
return self; return self;

View file

@ -73,8 +73,8 @@
} }
else else
{ {
NSColor * lightColor = [NSColor colorWithCalibratedRed: 255.0/255.0 green: 255.0/255.0 blue: 255.0/255.0 alpha: 1.0]; NSColor * lightColor = [NSColor colorWithCalibratedRed: 245.0/255.0 green: 245.0/255.0 blue: 245.0/255.0 alpha: 1.0];
NSColor * darkColor = [NSColor colorWithCalibratedRed: 225.0/255.0 green: 225.0/255.0 blue: 225.0/255.0 alpha: 1.0]; NSColor * darkColor = [NSColor colorWithCalibratedRed: 215.0/255.0 green: 215.0/255.0 blue: 215.0/255.0 alpha: 1.0];
NSGradient * gradient = [[NSGradient alloc] initWithStartingColor: lightColor endingColor: darkColor]; NSGradient * gradient = [[NSGradient alloc] initWithStartingColor: lightColor endingColor: darkColor];
[gradient drawInRect: tabRect angle: 270.0]; [gradient drawInRect: tabRect angle: 270.0];
[gradient release]; [gradient release];