Changeset 111 for Mulberry/branches/v4.1d1/MacOS/Sources/Application/Calendar/Calendar_View/Summary_View/CSummaryTable.cp
- Timestamp:
- 10/28/07 23:29:14 (1 year ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
Mulberry/branches/v4.1d1/MacOS/Sources/Application/Calendar/Calendar_View/Summary_View/CSummaryTable.cp
r74 r111 42 42 const uint32_t cLinkHeight = 16; 43 43 44 const float body_transparency = 0.75; 45 const float line_transparency = 1.0; 46 const float text_transparency = 0.9; 47 44 48 // --------------------------------------------------------------------------- 45 49 // CSummaryTable [public] … … 217 221 float blue = CGUtils::GetCGBlue(event->mColour); 218 222 if (CellIsSelected(inCell) && mDrawSelection) 219 CGUtils::UnflattenColours(red, green, blue); 223 ; 224 else 225 CGUtils::LightenColours(red, green, blue); 220 226 221 227 if (!link) 222 228 { 223 ::CGContextSetRGBFillColor(inContext, red, green, blue, 1.0);229 ::CGContextSetRGBFillColor(inContext, red, green, blue, (CellIsSelected(inCell) && mDrawSelection) ? 1.0 : body_transparency); 224 230 ::CGContextFillRect(inContext, adjustedRect); 225 231 } … … 233 239 ::CGContextSetGrayStrokeColor(inContext, 0.5, 1.0); 234 240 ::CGContextStrokePath(inContext); 235 ::CGContextClosePath(inContext);241 //::CGContextClosePath(inContext); 236 242 237 243 // Right-side only for last column … … 243 249 ::CGContextSetGrayStrokeColor(inContext, 0.5, 1.0); 244 250 ::CGContextStrokePath(inContext); 245 ::CGContextClosePath(inContext);251 //::CGContextClosePath(inContext); 246 252 } 247 253 … … 253 259 ::CGContextSetGrayStrokeColor(inContext, 0.5, 1.0); 254 260 ::CGContextStrokePath(inContext); 255 ::CGContextClosePath(inContext);261 //::CGContextClosePath(inContext); 256 262 } 257 263 … … 264 270 ::CGContextSetGrayStrokeColor(inContext, 0.5, 1.0); 265 271 ::CGContextStrokePath(inContext); 266 ::CGContextClosePath(inContext);272 //::CGContextClosePath(inContext); 267 273 } 268 274 } … … 301 307 ::CGContextSetGrayStrokeColor(inContext, 0.0, 1.0); 302 308 ::CGContextStrokePath(inContext); 303 ::CGContextClosePath(inContext);309 //::CGContextClosePath(inContext); 304 310 305 311 } … … 330 336 ::CGContextSetShouldAntialias(inContext, true); 331 337 332 ::CGContextSetGrayFillColor(inContext, 0.0, 1.0);338 ::CGContextSetGrayFillColor(inContext, (CellIsSelected(inCell) && mDrawSelection) ? 1.0 : 0.0, 1.0); 333 339 if (draw_txt) 334 340 { 335 341 Rect box = inLocalQDRect; 336 box.bottom -= mTextDescent;342 box.bottom = box.bottom - mTextDescent - 2; 337 343 ::DrawClippedStringUTF8(inContext, text, box, eDrawString_Left); 338 344 } … … 347 353 ::CGContextMoveToPoint(inContext, adjustedRect.origin.x, adjustedRect.origin.y + adjustedRect.size.height / 2); 348 354 ::CGContextAddLineToPoint(inContext, adjustedRect.origin.x + adjustedRect.size.width, adjustedRect.origin.y + adjustedRect.size.height / 2); 349 ::CGContextSetGrayStrokeColor(inContext, 0.0, 1.0);355 ::CGContextSetGrayStrokeColor(inContext, (CellIsSelected(inCell) && mDrawSelection) ? 1.0 : 0.0, 1.0); 350 356 ::CGContextStrokePath(inContext); 351 ::CGContextClosePath(inContext);357 //::CGContextClosePath(inContext); 352 358 353 359 // Turn on aliasing for text