MozillaZine

Changing color of Go to Date day

For discussing the Mozilla Calendar, Sunbird and Lightning projects.
Lost User 53265
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted February 21st, 2005, 10:21 am

I have changed the background color of my Today but I would like an idea for the code to have the same background color appear when I use the Choose Date function. Now when I choose a date in the future it appears with the default color. I would like to be able to change the default color to a different color. Any help would be appreciated.

Rod Whiteley

User avatar
 
Posts: 11480
Joined: December 6th, 2004, 3:41 am
Location: UK

Post Posted February 22nd, 2005, 4:14 am

To change Today, you specified the attribute today, like [today=true]. To change the selected day, you must do it for each view separately. The attributes are... [removed--see below]
Last edited by Rod Whiteley on February 22nd, 2005, 3:54 pm, edited 1 time in total.
Rod

Lost User 53265
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted February 22nd, 2005, 11:28 am

I do not have access to Dom Inspector. I am no programmer but I have fiddled around with the chrome editor and got some things to work. Is what you are suggesting something like this: .month-day-box-class[multi-week=true] {background-color:#4DB3B3 !important;} I tried this and it doesn't work. If I am on the wrong path, please let me know. Thank you for your advice.

Rod Whiteley

User avatar
 
Posts: 11480
Joined: December 6th, 2004, 3:41 am
Location: UK

Post Posted February 22nd, 2005, 3:59 pm

You are on the right path, but the information I posted before was not quite right. This seems to work in Sunbird 0.2:
Code: Select all
.month-day-box-class[monthselected=true],
.month-day-box-class[multiweekselected=true],
.week-view-hour-box-class[weekselected=true]
   {background-color:#4DB3B3 !important}
Rod

Lost User 53265
 
Posts: 0
Joined: December 31st, 1969, 5:00 pm

Post Posted February 22nd, 2005, 8:37 pm

Thank you very much. That works great.

Return to Calendar


Who is online

Users browsing this forum: No registered users and 2 guests