MozillaZine

Color for current date in Ligntning

Announce and Discuss the Latest Theme and Extension Releases.
Barkley Hound

User avatar
 
Posts: 332
Joined: June 1st, 2006, 8:53 am

Post Posted October 11th, 2016, 9:37 am

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: 2663
Joined: February 3rd, 2009, 6:29 pm

Post Posted October 11th, 2016, 6:54 pm

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

Barkley Hound

User avatar
 
Posts: 332
Joined: June 1st, 2006, 8:53 am

Post Posted October 12th, 2016, 7:45 am

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: 2663
Joined: February 3rd, 2009, 6:29 pm

Post Posted October 12th, 2016, 10:01 am

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

Barkley Hound

User avatar
 
Posts: 332
Joined: June 1st, 2006, 8:53 am

Post Posted October 12th, 2016, 10:06 am

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.

Return to Extension/Theme Releases


Who is online

Users browsing this forum: Google [Bot] and 3 guests