Changeset 2042

Show
Ignore:
Timestamp:
10/21/04 18:52:14 (4 years ago)
Author:
timothy
Message:

Correctly render the tab icon as disabled, previously not working since last commit.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/AICustomTabCell.m

    r2041 r2042  
    251251                 
    252252        //Draw the right cap 
    253         [tabFrontRight compositeToPoint:NSMakePoint(middleRightEdge, rect.origin.y) operation:NSCompositeSourceOver fraction:( [tabViewItem isEnabled] ? 1. : 0.5 )]; 
     253        [tabFrontRight compositeToPoint:NSMakePoint(middleRightEdge, rect.origin.y) operation:NSCompositeSourceOver]; 
    254254                 
    255255    }else if(highlighted){ 
     
    271271                destPoint = [self _tabIconRect].origin; 
    272272        } 
    273         [leftIcon compositeToPoint:destPoint operation:NSCompositeSourceOver]; 
     273        [leftIcon compositeToPoint:destPoint operation:NSCompositeSourceOver fraction:( hoveringClose || [tabViewItem isEnabled] ? 1. : 0.5 )]; 
    274274 
    275275        //Move over for label drawing.  We always move based on the tab icon and not on the close button.  This prevents