1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2025-02-04 05:22:40 +00:00

simplify the pieces bar by not drawing the gradient over it

This commit is contained in:
Mitchell Livingston 2008-05-27 04:25:00 +00:00
parent 3eb3d890ec
commit a24eabaa24
2 changed files with 1 additions and 8 deletions

View file

@ -36,8 +36,7 @@
NSColor * fBarOverlayColor;
CTGradient * fWhiteGradient, * fGrayGradient, * fLightGrayGradient, * fBlueGradient, * fDarkBlueGradient,
* fGreenGradient, * fLightGreenGradient, * fDarkGreenGradient, * fYellowGradient, * fRedGradient,
* fTransparentGradient;
* fGreenGradient, * fLightGreenGradient, * fDarkGreenGradient, * fYellowGradient, * fRedGradient;
NSColor * fGrayColor, * fBlueColor, * fBlue1Color, * fBlue2Color, * fBlue3Color, * fBlue4Color, * fOrangeColor;

View file

@ -126,7 +126,6 @@
copy->fDarkGreenGradient = [fDarkGreenGradient retain];
copy->fYellowGradient = [fYellowGradient retain];
copy->fRedGradient = [fRedGradient retain];
copy->fTransparentGradient = [fTransparentGradient retain];
return copy;
}
@ -144,7 +143,6 @@
[fDarkGreenGradient release];
[fYellowGradient release];
[fRedGradient release];
[fTransparentGradient release];
[super dealloc];
}
@ -782,10 +780,6 @@
//actually draw image
[fBitmap drawInRect: barRect];
if (!fTransparentGradient)
fTransparentGradient = [[CTGradient progressTransparentGradient] retain];
[fTransparentGradient fillRect: barRect angle: -90];
}
- (NSRect) rectForMinimalStatusWithString: (NSAttributedString *) string inBounds: (NSRect) bounds