more adjusting of the group coloring

This commit is contained in:
Mitchell Livingston 2007-12-18 21:32:55 +00:00
parent db5208698f
commit b498e720e6
1 changed files with 10 additions and 1 deletions

View File

@ -212,8 +212,17 @@
int groupValue = [torrent groupValue];
if (groupValue != -1)
{
NSRect groupRect = NSInsetRect(iconRect, -2.0, -3.0);
if (!minimal)
{
groupRect.size.height--;
groupRect.origin.y--;
}
[[[GroupsWindowController groupsController] gradientForIndex: groupValue] fillBezierPath:
[NSBezierPath bezierPathWithRoundedRect: NSInsetRect(iconRect, -2.0, minimal ? -3.0 : -2.0) radius: 6.0] angle: 90.0];
[NSBezierPath bezierPathWithRoundedRect: groupRect radius: 6.0] angle: 90.0];
}
//error image
BOOL error = [torrent isError];