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/Free_Busy_View/CFreeBusyTable.cp

    r97 r111  
    138138 
    139139                // Red for busy, green for free, blue for tentative, grey for unavailable 
    140                 float red = 0.5; 
    141                 float green = 0.5; 
    142                 float blue = 0.5; 
     140                float red = 0.0; 
     141                float green = 0.0; 
     142                float blue = 0.0; 
    143143                switch((*iter).first) 
    144144                { 
     
    150150                        break; 
    151151                case iCal::CICalendarFreeBusy::eBusyUnavailable: 
    152                         red = 0.75; 
    153                         green = 0.75; 
    154                         blue = 0.75; 
     152                        red = 0.25; 
     153                        green = 0.25; 
     154                        blue = 0.25; 
    155155                        break; 
    156156                case iCal::CICalendarFreeBusy::eBusy: 
     
    158158                        break; 
    159159                } 
    160                 CGUtils::UnflattenColours(red, green, blue); 
     160                CGUtils::LightenColours(red, green, blue); 
    161161 
    162162                // Draw it 
     
    193193        ::CGContextSetGrayStrokeColor(inContext, (inCell.col > 2) ? 0.75 : 0.5, 1.0); 
    194194        ::CGContextStrokePath(inContext); 
    195         ::CGContextClosePath(inContext); 
     195        //::CGContextClosePath(inContext); 
    196196 
    197197        // Right-side only for last column 
     
    203203                ::CGContextSetGrayStrokeColor(inContext, 0.5, 1.0); 
    204204                ::CGContextStrokePath(inContext); 
    205                 ::CGContextClosePath(inContext); 
     205                //::CGContextClosePath(inContext); 
    206206        } 
    207207 
     
    212212        ::CGContextSetGrayStrokeColor(inContext, 0.5, 1.0); 
    213213        ::CGContextStrokePath(inContext); 
    214         ::CGContextClosePath(inContext); 
     214        //::CGContextClosePath(inContext); 
    215215 
    216216        // Bottom-side for last row 
     
    222222                ::CGContextSetGrayStrokeColor(inContext, 0.5, 1.0); 
    223223                ::CGContextStrokePath(inContext); 
    224                 ::CGContextClosePath(inContext); 
     224                //::CGContextClosePath(inContext); 
    225225        } 
    226226