Changeset 989 for trunk/macosx/Torrent.m


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/Torrent.m

    r987 r989  
    5151
    5252static uint32_t kRed   = BE(0xFF6450FF), //255, 100, 80
    53                 kBlue1 = BE(0xA0DCFFFF), //160, 220, 255
    54                 kBlue2 = BE(0x78BEFFFF), //120, 190, 255
    55                 kBlue3 = BE(0x50A0FFFF), //80, 160, 255
    56                 kBlue4 = BE(0x1E46B4FF), //30, 70, 180
     53                kBlue = BE(0x50A0FFFF), //80, 160, 255
     54                kBlue2 = BE(0x1E46B4FF), //30, 70, 180
    5755                kGray  = BE(0x969696FF), //150, 150, 150
    58                 kGreen = BE(0x00FF00FF), //0, 255, 0
     56                kGreen1 = BE(0x99FFCCFF), //153, 255, 204
     57                kGreen2 = BE(0x66FF99FF), //102, 255, 153
     58                kGreen3 = BE(0x00FF66FF), //0, 255, 102
    5959                kWhite = BE(0xFFFFFFFF); //255, 255, 255
    6060
     
    854854    [self getAvailability: pieces size: MAX_PIECES];
    855855   
    856     //lines 2 to 14: blue or grey depending on whether we have the piece or not
     856    //lines 2 to 14: blue, green, or gray depending on whether we have the piece or not
    857857    int have = 0, avail = 0;
    858858    uint32_t color;
     
    865865            if (fPieces[w] != -1)
    866866            {
    867                 color = kGreen;
     867                color = kBlue;
    868868                fPieces[w] = -1;
    869869                change = YES;
     
    886886                if (fPieces[w] != 1)
    887887                {
    888                     color = kBlue1;
     888                    color = kGreen1;
    889889                    fPieces[w] = 1;
    890890                    change = YES;
     
    895895                if (fPieces[w] != 2)
    896896                {
    897                     color = kBlue2;
     897                    color = kGreen2;
    898898                    fPieces[w] = 2;
    899899                    change = YES;
     
    904904                if (fPieces[w] != 3)
    905905                {
    906                     color = kBlue3;
     906                    color = kGreen3;
    907907                    fPieces[w] = 3;
    908908                    change = YES;
     
    928928    for (w = 0; w < have; w++)
    929929    {
    930         p[w] = kBlue4;
    931         p[w + bytesPerRow / 4] = kBlue4;
     930        p[w] = kBlue2;
     931        p[w + bytesPerRow / 4] = kBlue2;
    932932    }
    933933    for (; w < avail + have; w++)
    934934    {
    935         p[w] = kGreen;
    936         p[w + bytesPerRow / 4] = kGreen;
     935        p[w] = kGreen3;
     936        p[w + bytesPerRow / 4] = kGreen3;
    937937    }
    938938    for (; w < MAX_PIECES; w++)
Note: See TracChangeset for help on using the changeset viewer.