Monotone-Parent: 0ab91a79c43fc79346ff91e416032be2bd1b544a

Monotone-Revision: 140f7dd26cdec380675b0b319d9ee737783d404b

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2006-10-18T15:11:35
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
Wolfgang Sourdeau
2006-10-18 15:11:35 +00:00
parent 2b01ef19e1
commit 4ddbe4047d
2 changed files with 7 additions and 5 deletions

View File

@@ -64,7 +64,9 @@
unsigned char colorTable[] = { 1, 1, 1 };
NSString *color;
if (number == NSNotFound)
if (number == 0)
color = @"#ccf";
else if (number == NSNotFound)
color = @"#f00";
else
{
@@ -80,9 +82,9 @@
index++;
}
color = [NSString stringWithFormat: @"#%2x%2x%2x",
(256 / colorTable[2]) - 1,
(256 / colorTable[1]) - 1,
(256 / colorTable[0]) - 1];
(255 / colorTable[2]) - 1,
(255 / colorTable[1]) - 1,
(255 / colorTable[0]) - 1];
}
NSLog(@"color = '%@'", color);

View File

@@ -438,7 +438,7 @@ DIV#calendarContent
SPAN.appointmentView
{ display: block;
background: #dd0;
border: 1px dashed #990; }
border: 1px solid #000; }
SPAN.colorBox
{ display: block;