Color for current date in Ligntning

Announce and Discuss the Latest Theme and Extension Releases.
Post Reply
User avatar
Barkley Hound
Posts: 358
Joined: June 1st, 2006, 8:53 am

Color for current date in Ligntning

Post by Barkley Hound »

Is there a way to make the current day stand out better in the month view of Lightning 4.7.4. The solid light color just does not stand out. I would either like to have a darker color, a heavy border, or a pattern for the background.
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Color for current date in Ligntning

Post by morat »

You can change the color with a userChrome.css tweak.

Code: Select all

/* Thunderbird userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

window {
  --viewTodayBackground: red !important;
  --viewDayBoxSelectedBackground: orange !important;
}
http://kb.mozillazine.org/UserChrome.css
http://dxr.mozilla.org/comm-central/sou ... -views.css
User avatar
Barkley Hound
Posts: 358
Joined: June 1st, 2006, 8:53 am

Re: Color for current date in Ligntning

Post by Barkley Hound »

morat wrote:You can change the color with a userChrome.css tweak.

Code: Select all

/* Thunderbird userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

window {
  --viewTodayBackground: red !important;
  --viewDayBoxSelectedBackground: orange !important;
}
http://kb.mozillazine.org/UserChrome.css
http://dxr.mozilla.org/comm-central/sou ... -views.css
Thank you. That works. There is one minor annoyance but I can live with it. The selected day has priority over the current day so initially the current day is orange unless anther day is selected.
morat
Posts: 6404
Joined: February 3rd, 2009, 6:29 pm

Re: Color for current date in Ligntning

Post by morat »

You can switch the priority. (red over orange)

Code: Select all

/* Thunderbird userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

.calendar-month-day-box-current-month[selected="true"] {
  background-color: orange !important;
}

.calendar-month-day-box-current-month[relation="today"] {
  background-color: red !important;
}
note: rules that appear later in the code override earlier rules if both have the same specificity
User avatar
Barkley Hound
Posts: 358
Joined: June 1st, 2006, 8:53 am

Re: Color for current date in Ligntning

Post by Barkley Hound »

morat wrote:You can switch the priority. (red over orange)

Code: Select all

/* Thunderbird userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

.calendar-month-day-box-current-month[selected="true"] {
  background-color: orange !important;
}

.calendar-month-day-box-current-month[relation="today"] {
  background-color: red !important;
}
note: rules that appear later in the code override earlier rules if both have the same specificity
Perfect. Thanks. Since I rarely have to change the chrome it is easier to just ask and not try to learn it. I would forget by the time it was used.
Post Reply