Changeset 989
- Timestamp:
- Oct 6, 2006, 8:45:59 PM (16 years ago)
- Location:
- trunk/macosx
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/PiecesView.h
r988 r989 30 30 int8_t * fPieces; 31 31 32 NSImage * fBack, * fWhitePiece, * f GreenPiece, * fRedPiece,33 * f Blue1Piece, * fBlue2Piece, * fBlue3Piece;32 NSImage * fBack, * fWhitePiece, * fBluePiece, * fRedPiece, 33 * fGreen1Piece, * fGreen2Piece, * fGreen3Piece; 34 34 35 35 Torrent * fTorrent; -
trunk/macosx/PiecesView.m
r988 r989 63 63 [fWhitePiece unlockFocus]; 64 64 65 // greenbox image66 f GreenPiece = [[NSImage alloc] initWithSize: size];67 68 [f GreenPiece lockFocus];69 [[NSColor colorWithCalibratedRed: 0. 557 green: 0.992 blue: 0.639alpha: 1.0] set];70 [bp fill]; 71 [f GreenPiece unlockFocus];72 73 // greenbox image65 //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 74 74 fRedPiece = [[NSImage alloc] initWithSize: size]; 75 75 … … 79 79 [fRedPiece unlockFocus]; 80 80 81 // blue1 box image82 f Blue1Piece = [[NSImage alloc] initWithSize: size];83 84 [f Blue1Piece lockFocus];85 [[NSColor colorWithCalibratedRed: 0.6 82 green: 0.839 blue: 1.0alpha: 1.0] set];86 [bp fill]; 87 [f Blue1Piece unlockFocus];88 89 // blue2 box image90 f Blue2Piece = [[NSImage alloc] initWithSize: size];91 92 [f Blue2Piece lockFocus];93 [[NSColor colorWithCalibratedRed: 0. 506 green: 0.745 blue: 1.0alpha: 1.0] set];94 [bp fill]; 95 [f Blue2Piece unlockFocus];96 97 // blue3 box image98 f Blue3Piece = [[NSImage alloc] initWithSize: size];99 100 [f Blue3Piece lockFocus];101 [[NSColor colorWithCalibratedRed: 0. 35 green: 0.65 blue: 1.0alpha: 1.0] set];102 [bp fill]; 103 [f Blue3Piece 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]; 104 104 105 105 //actually draw the box … … 114 114 [fWhitePiece release]; 115 115 [fRedPiece release]; 116 [f GreenPiece release];117 [f Blue1Piece release];118 [f Blue2Piece release];119 [f Blue3Piece release];116 [fBluePiece release]; 117 [fGreen1Piece release]; 118 [fGreen2Piece release]; 119 [fGreen3Piece release]; 120 120 121 121 if (fTorrent) … … 197 197 { 198 198 fPieces[index] = -1; 199 pieceImage = f GreenPiece;199 pieceImage = fBluePiece; 200 200 } 201 201 else if (fPieces[index] != -1) … … 219 219 { 220 220 fPieces[index] = 1; 221 pieceImage = f Blue1Piece;221 pieceImage = fGreen1Piece; 222 222 } 223 223 } … … 227 227 { 228 228 fPieces[index] = 2; 229 pieceImage = f Blue2Piece;229 pieceImage = fGreen2Piece; 230 230 } 231 231 } … … 235 235 { 236 236 fPieces[index] = 3; 237 pieceImage = f Blue3Piece;237 pieceImage = fGreen3Piece; 238 238 } 239 239 } -
trunk/macosx/Torrent.m
r987 r989 51 51 52 52 static 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 57 55 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 59 59 kWhite = BE(0xFFFFFFFF); //255, 255, 255 60 60 … … 854 854 [self getAvailability: pieces size: MAX_PIECES]; 855 855 856 //lines 2 to 14: blue or grey depending on whether we have the piece or not856 //lines 2 to 14: blue, green, or gray depending on whether we have the piece or not 857 857 int have = 0, avail = 0; 858 858 uint32_t color; … … 865 865 if (fPieces[w] != -1) 866 866 { 867 color = k Green;867 color = kBlue; 868 868 fPieces[w] = -1; 869 869 change = YES; … … 886 886 if (fPieces[w] != 1) 887 887 { 888 color = k Blue1;888 color = kGreen1; 889 889 fPieces[w] = 1; 890 890 change = YES; … … 895 895 if (fPieces[w] != 2) 896 896 { 897 color = k Blue2;897 color = kGreen2; 898 898 fPieces[w] = 2; 899 899 change = YES; … … 904 904 if (fPieces[w] != 3) 905 905 { 906 color = k Blue3;906 color = kGreen3; 907 907 fPieces[w] = 3; 908 908 change = YES; … … 928 928 for (w = 0; w < have; w++) 929 929 { 930 p[w] = kBlue 4;931 p[w + bytesPerRow / 4] = kBlue 4;930 p[w] = kBlue2; 931 p[w + bytesPerRow / 4] = kBlue2; 932 932 } 933 933 for (; w < avail + have; w++) 934 934 { 935 p[w] = kGreen ;936 p[w + bytesPerRow / 4] = kGreen ;935 p[w] = kGreen3; 936 p[w + bytesPerRow / 4] = kGreen3; 937 937 } 938 938 for (; w < MAX_PIECES; w++) -
trunk/macosx/Transmission Help/html/FAQ.html
r968 r989 42 42 <h1>What do the colors mean in the advanced progress bar/pieces box? </h1> 43 43 </div> 44 <p><font color="green"> Green</font>: we have this piece <br>44 <p><font color="green">Blue</font>: we have this piece <br> 45 45 <font color="gray">Gray/White</font>: no connected peers have this piece <br> 46 <font color="blue"> Blue</font>: connected peers have this piece (the darker the blue, the more there are) <br>46 <font color="blue">Green</font>: connected peers have this piece (the darker the green, the more there are) <br> 47 47 48 48 <p>The fine, dark blue line on top of the bar shows the global progression, while the green line following it shows how much of the remaining download is actually available.<br>
Note: See TracChangeset
for help on using the changeset viewer.