Changeset 111 for Mulberry/branches/v4.1d1/MacOS/Sources/Application/Calendar/Calendar_View/Day_Week_View/CDayWeekTable.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/Day_Week_View/CDayWeekTable.cp
r97 r111 42 42 const uint32_t cEventMargin = 4; 43 43 44 const float line_gray = 0.75; 45 const float line_gray_lighter = 0.875; 46 44 47 // --------------------------------------------------------------------------- 45 48 // CDayWeekTable [public] … … 211 214 ::CGContextMoveToPoint(inContext, adjustedRect.origin.x, adjustedRect.origin.y); 212 215 ::CGContextAddLineToPoint(inContext, adjustedRect.origin.x, adjustedRect.origin.y + adjustedRect.size.height); 213 ::CGContextSetGrayStrokeColor(inContext, 0.5, 1.0);216 ::CGContextSetGrayStrokeColor(inContext, line_gray, 1.0); 214 217 ::CGContextStrokePath(inContext); 215 ::CGContextClosePath(inContext);218 //::CGContextClosePath(inContext); 216 219 217 220 // Right-side only for last column … … 221 224 ::CGContextMoveToPoint(inContext, adjustedRect.origin.x + adjustedRect.size.width, adjustedRect.origin.y); 222 225 ::CGContextAddLineToPoint(inContext, adjustedRect.origin.x + adjustedRect.size.width, adjustedRect.origin.y + adjustedRect.size.height); 223 ::CGContextSetGrayStrokeColor(inContext, 0.5, 1.0);226 ::CGContextSetGrayStrokeColor(inContext, line_gray, 1.0); 224 227 ::CGContextStrokePath(inContext); 225 ::CGContextClosePath(inContext);228 //::CGContextClosePath(inContext); 226 229 } 227 230 … … 233 236 ::CGContextMoveToPoint(inContext, adjustedRect.origin.x, adjustedRect.origin.y); 234 237 ::CGContextAddLineToPoint(inContext, adjustedRect.origin.x + adjustedRect.size.width, adjustedRect.origin.y); 235 ::CGContextSetGrayStrokeColor(inContext, (inCell.row % 2 == 1) && (inCell.row != 1) ? 0.75 : 0.5, 1.0);238 ::CGContextSetGrayStrokeColor(inContext, (inCell.row % 2 == 1) && (inCell.row != 1) ? line_gray_lighter : line_gray, 1.0); 236 239 ::CGContextStrokePath(inContext); 237 ::CGContextClosePath(inContext);240 //::CGContextClosePath(inContext); 238 241 } 239 242 … … 244 247 ::CGContextMoveToPoint(inContext, adjustedRect.origin.x, adjustedRect.origin.y + adjustedRect.size.height); 245 248 ::CGContextAddLineToPoint(inContext, adjustedRect.origin.x + adjustedRect.size.width, adjustedRect.origin.y + adjustedRect.size.height); 246 ::CGContextSetGrayStrokeColor(inContext, (inCell.row % 2 == 1) && (inCell.row != 1) ? 0.75 : 0.5, 1.0);249 ::CGContextSetGrayStrokeColor(inContext, (inCell.row % 2 == 1) && (inCell.row != 1) ? line_gray_lighter : line_gray, 1.0); 247 250 ::CGContextStrokePath(inContext); 248 ::CGContextClosePath(inContext);251 //::CGContextClosePath(inContext); 249 252 } 250 253 … … 368 371 ::CGContextSetRGBStrokeColor(inContext, 0.95, 0.0, 0.0, 1.0); 369 372 ::CGContextStrokePath(inContext); 370 ::CGContextClosePath(inContext);373 //::CGContextClosePath(inContext); 371 374 } 372 375 }