Alternating message backgroud in Inbox folder

User Help for Mozilla Thunderbird
Post Reply
ITFOOL
Posts: 3
Joined: June 9th, 2017, 4:19 pm

Alternating message backgroud in Inbox folder

Post by ITFOOL »

A few years ago I was able to find a Thunderbird tweak that would display the Inbox messages with alternating background color to make viewing the Inbox easier, might have been in a CSS file or a registry edit, I can't remember. Now I have 52.1.1 installed and have been trying to find a way to do this again without any luck. I did find this post from back in 2004 but after trying it I can't get it to work. My path is Users\pcname\Appdata\Roaming\Thunderbird\Profiles\xxxxxdefault. I also tried it by creating a subfolder under xxxxxdefault called custom. The file name is userChrome.css in both cases. This is the contents from the 2004 post:
Code: Select all
/* ::::: alternating background ::::: */

treechildren::-moz-tree-row(odd) {
  border: 1px solid transparent !important;
  background-color: #FFFFFF !important;
  min-height: 18px !important;
  height: 1.3em !important;
}

treechildren::-moz-tree-row(even) {
  border: 1px solid transparent !important;
  background-color: #99ff99 !important;
  min-height: 18px !important;
  height: 1.3em !important;
}

treechildren::-moz-tree-row(selected) {
  background-color: #c8d338 !important;
}

treechildren::-moz-tree-row(selected, focus) {
  background-color: #36bad6 !important;
}


If anyone has any ideas I would really appreciate it. Maybe there is a theme that would do that.
Thanks.
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Alternating message backgroud in Inbox folder

Post by tanstaafl »

I'd start with http://kb.mozillazine.org/Zebra_striping . The snippet for the default theme works on my PC with 52.1.1 when I try it.

/* change zebra striping color */
#threadTree treechildren::-moz-tree-row(odd) {
-moz-appearance: none !important;
background-image: none !important;
background-color:#66FFCC !important;}

#threadTree treechildren::-moz-tree-row(odd, selected) {
background-color: Highlight !important;
}
ITFOOL
Posts: 3
Joined: June 9th, 2017, 4:19 pm

Re: Alternating message backgroud in Inbox folder

Post by ITFOOL »

Hmmm, I copied and pasted the snippet in to the css file, rebooted TBird, but still won't work. I'm wondering if I have the css file in the wrong path. Where should it be ?
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Alternating message backgroud in Inbox folder

Post by tanstaafl »

"the optional userChrome.css file in the Chrome directory in your profile". It is not on the path, it is in a predefined location.

http://kb.mozillazine.org/UserChrome.css
ITFOOL
Posts: 3
Joined: June 9th, 2017, 4:19 pm

Re: Alternating message backgroud in Inbox folder

Post by ITFOOL »

Thanks tanstaafl !! Followed your link and put css file in correct folder with correct first line and it worked. Yeah. Much appreciated.
Post Reply