Show
Ignore:
Timestamp:
10/28/07 23:29:14 (1 year ago)
Author:
daboo
Message:

Tweak the look of calendar events.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Mulberry/branches/v4.1d1/MacOS/Sources/Application/Calendar/Calendar_View/Day_Week_View/CDayWeekTable.cp

    r97 r111  
    4242const uint32_t cEventMargin = 4; 
    4343 
     44const float line_gray = 0.75; 
     45const float line_gray_lighter = 0.875; 
     46 
    4447// --------------------------------------------------------------------------- 
    4548//      CDayWeekTable                                                                                                             [public] 
     
    211214        ::CGContextMoveToPoint(inContext, adjustedRect.origin.x, adjustedRect.origin.y); 
    212215        ::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); 
    214217        ::CGContextStrokePath(inContext); 
    215         ::CGContextClosePath(inContext); 
     218        //::CGContextClosePath(inContext); 
    216219 
    217220        // Right-side only for last column 
     
    221224                ::CGContextMoveToPoint(inContext, adjustedRect.origin.x + adjustedRect.size.width, adjustedRect.origin.y); 
    222225                ::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); 
    224227                ::CGContextStrokePath(inContext); 
    225                 ::CGContextClosePath(inContext); 
     228                //::CGContextClosePath(inContext); 
    226229        } 
    227230 
     
    233236                ::CGContextMoveToPoint(inContext, adjustedRect.origin.x, adjustedRect.origin.y); 
    234237                ::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); 
    236239                ::CGContextStrokePath(inContext); 
    237                 ::CGContextClosePath(inContext); 
     240                //::CGContextClosePath(inContext); 
    238241        } 
    239242 
     
    244247                ::CGContextMoveToPoint(inContext, adjustedRect.origin.x, adjustedRect.origin.y + adjustedRect.size.height); 
    245248                ::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); 
    247250                ::CGContextStrokePath(inContext); 
    248                 ::CGContextClosePath(inContext); 
     251                //::CGContextClosePath(inContext); 
    249252        } 
    250253         
     
    368371                ::CGContextSetRGBStrokeColor(inContext, 0.95, 0.0, 0.0, 1.0); 
    369372                ::CGContextStrokePath(inContext); 
    370                 ::CGContextClosePath(inContext); 
     373                //::CGContextClosePath(inContext); 
    371374        } 
    372375}