Changeset 5835


Ignore:
Timestamp:
May 14, 2008, 10:57:46 PM (14 years ago)
Author:
livings124
Message:

minor adjustments/code cleanup of the new group drawing code

Location:
trunk/macosx
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/GroupsController.h

    r5589 r5835  
    3939- (int) indexForRow: (int) row;
    4040
    41 - (CTGradient *) gradientForIndex: (int) index;
    42 
    4341- (NSString *) nameForIndex: (int) index;
    4442- (void) setName: (NSString *) name forIndex: (int) index;
  • trunk/macosx/GroupsController.m

    r5834 r5835  
    129129}
    130130
    131 - (CTGradient *) gradientForIndex: (int) index
    132 {
    133     int orderIndex = [self rowValueForIndex: index];
    134     //return orderIndex != -1 ? [self gradientForColor: [[fGroups objectAtIndex: orderIndex] objectForKey: @"Color"]] : nil;
    135     return [CTGradient gradientWithBeginningColor: [NSColor blueColor] endingColor: [NSColor redColor]];
    136 }
    137 
    138131- (NSString *) nameForIndex: (int) index
    139132{
     
    302295   
    303296    //border
    304     CTGradient * gradient = [CTGradient gradientWithBeginningColor: [color blendedColorWithFraction: 0.55 ofColor:
     297    CTGradient * gradient = [CTGradient gradientWithBeginningColor: [color blendedColorWithFraction: 0.45 ofColor:
    305298                                [NSColor whiteColor]] endingColor: color];
    306299    [gradient fillBezierPath: bp angle: 270.0];
  • trunk/macosx/TorrentCell.m

    r5834 r5835  
    436436        //border
    437437        NSBezierPath * bp = [NSBezierPath bezierPathWithRoundedRect: groupRect radius: 6.0];
    438         CTGradient * gradient = [CTGradient gradientWithBeginningColor: [groupColor blendedColorWithFraction: 0.55 ofColor:
     438        CTGradient * gradient = [CTGradient gradientWithBeginningColor: [groupColor blendedColorWithFraction: 0.45 ofColor:
    439439                                [NSColor whiteColor]] endingColor: groupColor];
    440440        [gradient fillBezierPath: bp angle: 90.0];
Note: See TracChangeset for help on using the changeset viewer.