Ignore:
Timestamp:
Oct 6, 2006, 8:45:59 PM (16 years ago)
Author:
livings124
Message:

Swap green and blue in the advanced bar/pieces view

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/macosx/PiecesView.m

    r988 r989  
    6363        [fWhitePiece unlockFocus];
    6464       
    65         //green box image
    66         fGreenPiece = [[NSImage alloc] initWithSize: size];
    67        
    68         [fGreenPiece lockFocus];
    69         [[NSColor colorWithCalibratedRed: 0.557 green: 0.992 blue: 0.639 alpha: 1.0] set];
    70         [bp fill];
    71         [fGreenPiece unlockFocus];
    72        
    73         //green box image
     65        //blue box image
     66        fBluePiece = [[NSImage alloc] initWithSize: size];
     67       
     68        [fBluePiece lockFocus];
     69        [[NSColor colorWithCalibratedRed: 0.35 green: 0.65 blue: 1.0 alpha: 1.0] set];
     70        [bp fill];
     71        [fBluePiece unlockFocus];
     72       
     73        //red box image
    7474        fRedPiece = [[NSImage alloc] initWithSize: size];
    7575       
     
    7979        [fRedPiece unlockFocus];
    8080       
    81         //blue 1 box image
    82         fBlue1Piece = [[NSImage alloc] initWithSize: size];
    83        
    84         [fBlue1Piece lockFocus];
    85         [[NSColor colorWithCalibratedRed: 0.682 green: 0.839 blue: 1.0 alpha: 1.0] set];
    86         [bp fill];
    87         [fBlue1Piece unlockFocus];
    88        
    89         //blue 2 box image
    90         fBlue2Piece = [[NSImage alloc] initWithSize: size];
    91        
    92         [fBlue2Piece lockFocus];
    93         [[NSColor colorWithCalibratedRed: 0.506 green: 0.745 blue: 1.0 alpha: 1.0] set];
    94         [bp fill];
    95         [fBlue2Piece unlockFocus];
    96        
    97         //blue 3 box image
    98         fBlue3Piece = [[NSImage alloc] initWithSize: size];
    99        
    100         [fBlue3Piece lockFocus];
    101         [[NSColor colorWithCalibratedRed: 0.35 green: 0.65 blue: 1.0 alpha: 1.0] set];
    102         [bp fill];
    103         [fBlue3Piece unlockFocus];
     81        //green 1 box image
     82        fGreen1Piece = [[NSImage alloc] initWithSize: size];
     83       
     84        [fGreen1Piece lockFocus];
     85        [[NSColor colorWithCalibratedRed: 0.6 green: 1.0 blue: 0.8 alpha: 1.0] set];
     86        [bp fill];
     87        [fGreen1Piece unlockFocus];
     88       
     89        //green 2 box image
     90        fGreen2Piece = [[NSImage alloc] initWithSize: size];
     91       
     92        [fGreen2Piece lockFocus];
     93        [[NSColor colorWithCalibratedRed: 0.4 green: 1.0 blue: 0.6 alpha: 1.0] set];
     94        [bp fill];
     95        [fGreen2Piece unlockFocus];
     96       
     97        //green 3 box image
     98        fGreen3Piece = [[NSImage alloc] initWithSize: size];
     99       
     100        [fGreen3Piece lockFocus];
     101        [[NSColor colorWithCalibratedRed: 0.0 green: 1.0 blue: 0.4 alpha: 1.0] set];
     102        [bp fill];
     103        [fGreen3Piece unlockFocus];
    104104       
    105105        //actually draw the box
     
    114114    [fWhitePiece release];
    115115    [fRedPiece release];
    116     [fGreenPiece release];
    117     [fBlue1Piece release];
    118     [fBlue2Piece release];
    119     [fBlue3Piece release];
     116    [fBluePiece release];
     117    [fGreen1Piece release];
     118    [fGreen2Piece release];
     119    [fGreen3Piece release];
    120120   
    121121    if (fTorrent)
     
    197197                {
    198198                    fPieces[index] = -1;
    199                     pieceImage = fGreenPiece;
     199                    pieceImage = fBluePiece;
    200200                }
    201201                else if (fPieces[index] != -1)
     
    219219                {
    220220                    fPieces[index] = 1;
    221                     pieceImage = fBlue1Piece;
     221                    pieceImage = fGreen1Piece;
    222222                }
    223223            }
     
    227227                {
    228228                    fPieces[index] = 2;
    229                     pieceImage = fBlue2Piece;
     229                    pieceImage = fGreen2Piece;
    230230                }
    231231            }
     
    235235                {
    236236                    fPieces[index] = 3;
    237                     pieceImage = fBlue3Piece;
     237                    pieceImage = fGreen3Piece;
    238238                }
    239239            }
Note: See TracChangeset for help on using the changeset viewer.