MozillaZine


color filters and solid color band

Discussion of general topics about Mozilla Thunderbird
zuclopenthixol
 
Posts: 4
Joined: November 6th, 2005, 8:11 pm

Post Posted November 6th, 2005, 8:17 pm

Hi there,
Is there a way to add more than the 5 differing colours as filters?
I would like to have a different colour for several individuals and also have group colours still for important and work and so forth. bascially something like mac mail has.
I've looked for days now for a plugin or way to accomplish this but am just stuck.
also is there a way to reverse the color band. currently when in focas it is a solid colour and out of focas just the text is coloured. I'd like it so when i goto the inbox the colour is a solid band so it clearly shows up and when in focas (previewing email) it is just the text coloured.
Just so important emails show up vividly to make it a no brainer for myself at 2am on a hard night.

any help with this would be greatly appreciated.

Daifne
Moderator

User avatar
 
Posts: 123071
Joined: July 31st, 2005, 9:17 pm
Location: Where the Waters Meet, Wisconsin

Post Posted November 6th, 2005, 8:40 pm

I assume you're talking about labels rather than filters. If so, no. You can change the colors, but you are limited to those five.

wintogreen
 
Posts: 3891
Joined: October 31st, 2003, 8:38 pm

Post Posted November 6th, 2005, 9:43 pm

You should be able to reverse the coloring, though, by tweaking your userChrome.css file. If I have time later I'll see if I can dig up the code you need.

zuclopenthixol
 
Posts: 4
Joined: November 6th, 2005, 8:11 pm

Post Posted November 6th, 2005, 9:49 pm

Thanks. any help is appreciated

wintogreen
 
Posts: 3891
Joined: October 31st, 2003, 8:38 pm

Post Posted November 7th, 2005, 3:08 am

OK, I think we're in business now. I've only tested this with one profile and with the default theme, but I think it should work. What you need to do is exit Thunderbird, insert the following code into your "userChrome.css" file, and restart. More info: http://kb.mozillazine.org/UserChrome.cs ... ontent.css .

Code: Select all
/* ::::: thread labels: reverse the background/text coloring ::::: */

treechildren::-moz-tree-row(lc-FF0000) {
  background-color: #FF0000 !important;
}
treechildren::-moz-tree-row(lc-FF0000, selected) {
  background-color: -moz-Dialog !important;
}
treechildren::-moz-tree-cell-text(lc-FF0000) {
  color: white !important;
}
treechildren::-moz-tree-cell-text(lc-FF0000, selected) {
  color: #FF0000 !important;
}


The above is for the "Important" (red) label only. The four other default lable colors are, I believe, #FF9900, #009900, #3333FF, and #993399. If you want to reverse the coloring for another one of those labels, then copy the above text, replace FF0000 everywhere above with 009900 or whatever, and paste it into your userChrome.css file.

If you're using a non-default color for one of your labels, you'll need to find out what its hex value is; I think non-default label colors will be stored in the prefs.js file in your profile folder, or you can find it from about:config.
http://kb.mozillazine.org/Profile_folder
http://kb.mozillazine.org/About:config

If you want to make this work for every possible label color, you're going to end up with a very long userChrome.css file, since there are 70 colors total.

zuclopenthixol
 
Posts: 4
Joined: November 6th, 2005, 8:11 pm

Post Posted November 7th, 2005, 11:53 am

Okay it works real good for the red. and have checked the hex colours and also used defualt colours but cannot get it to work except for the important label. something is missing it just won;t work for the other labels. tried changing lc to lc1, lc2 etc, but has got me stumped.

wintogreen
 
Posts: 3891
Joined: October 31st, 2003, 8:38 pm

Post Posted November 7th, 2005, 6:43 pm

Here's the whole thing for the 5 default colors.
Code: Select all
/* ::::: thread labels: reverse the background/text coloring ::::: */

/* This works with the default label colors only.
   Default label colors: #FF0000, #FF9900, #009900, #3333FF, #993399 */

treechildren::-moz-tree-row(lc-FF0000) {
  background-color: #FF0000 !important;
}
treechildren::-moz-tree-row(lc-FF0000, selected) {
  background-color: -moz-Dialog !important;
}
treechildren::-moz-tree-cell-text(lc-FF0000) {
  color: white !important;
}
treechildren::-moz-tree-cell-text(lc-FF0000, selected) {
  color: #FF0000 !important;
}

treechildren::-moz-tree-row(lc-FF9900) {
  background-color: #FF9900 !important;
}
treechildren::-moz-tree-row(lc-FF9900, selected) {
  background-color: -moz-Dialog !important;
}
treechildren::-moz-tree-cell-text(lc-FF9900) {
  color: white !important;
}
treechildren::-moz-tree-cell-text(lc-FF9900, selected) {
  color: #FF9900 !important;
}

treechildren::-moz-tree-row(lc-009900) {
  background-color: #009900 !important;
}
treechildren::-moz-tree-row(lc-009900, selected) {
  background-color: -moz-Dialog !important;
}
treechildren::-moz-tree-cell-text(lc-009900) {
  color: white !important;
}
treechildren::-moz-tree-cell-text(lc-009900, selected) {
  color: #009900 !important;
}

treechildren::-moz-tree-row(lc-3333FF) {
  background-color: #3333FF !important;
}
treechildren::-moz-tree-row(lc-3333FF, selected) {
  background-color: -moz-Dialog !important;
}
treechildren::-moz-tree-cell-text(lc-3333FF) {
  color: white !important;
}
treechildren::-moz-tree-cell-text(lc-3333FF, selected) {
  color: #3333FF !important;
}

treechildren::-moz-tree-row(lc-993399) {
  background-color: #993399 !important;
}
treechildren::-moz-tree-row(lc-993399, selected) {
  background-color: -moz-Dialog !important;
}
treechildren::-moz-tree-cell-text(lc-993399) {
  color: white !important;
}
treechildren::-moz-tree-cell-text(lc-993399, selected) {
  color: #993399 !important;
}

zuclopenthixol
 
Posts: 4
Joined: November 6th, 2005, 8:11 pm

Post Posted November 7th, 2005, 7:47 pm

Perfect! thanks heaps for your help thats exactly what I was after.

wintogreen
 
Posts: 3891
Joined: October 31st, 2003, 8:38 pm

Post Posted November 7th, 2005, 8:31 pm

Great! Glad that did the trick.

Return to Thunderbird General


Who is online

Users browsing this forum: No registered users and 0 guests