Changeset 4197


Ignore:
Timestamp:
Dec 18, 2007, 3:48:03 AM (14 years ago)
Author:
livings124
Message:

make group color a little more subtle

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/TorrentCell.m

    r4196 r4197  
    5252#define PADDING_BETWEEN_BAR_AND_STATUS 2.0
    5353
    54 #define WIDTH_GROUP_FADE 16.0
    5554#define WIDTH_GROUP 40.0
    5655#define WIDTH_GROUP_MIN 24.0
     
    212211    if (groupValue != -1)
    213212    {
    214         NSColor * color = [[[GroupsWindowController groupsController] colorForIndex: groupValue]
    215                             blendedColorWithFraction: 0.3 ofColor: [NSColor whiteColor]];
    216        
    217213        NSRect groupRect = cellFrame;
    218         groupRect.size.width = (minimal ? WIDTH_GROUP_MIN : WIDTH_GROUP) - WIDTH_GROUP_FADE;
     214        groupRect.size.width = minimal ? WIDTH_GROUP_MIN : WIDTH_GROUP;
    219215        groupRect.origin.x -= 1.0;
    220216        groupRect.size.height += 1.0;
    221217        groupRect.origin.y -= 1.0;
    222218       
    223         [color set];
    224         NSRectFill(groupRect);
    225        
    226         groupRect.origin.x += groupRect.size.width;
    227         groupRect.size.width = WIDTH_GROUP_FADE;
    228        
     219        NSColor * color = [[[GroupsWindowController groupsController] colorForIndex: groupValue]
     220                            blendedColorWithFraction: 0.3 ofColor: [NSColor whiteColor]];
    229221        CTGradient * gradient = [CTGradient gradientWithBeginningColor: color endingColor: [color colorWithAlphaComponent: 0.0]];
    230222        [gradient fillRect: groupRect angle: 0.0];
Note: See TracChangeset for help on using the changeset viewer.