MozillaZine

Color to highlight mailboxes

Discussion of general topics about Mozilla Thunderbird
Howard Kaikow
 
Posts: 606
Joined: November 6th, 2004, 4:41 pm

Post Posted November 18th, 2005, 11:32 pm

When there is unread mail, the containing mailbox is supposed to be highlighted with dark black text.

Is there a way to specify that a different color be used?

zoriv

User avatar
 
Posts: 1249
Joined: May 6th, 2005, 2:01 pm

Post Posted November 19th, 2005, 1:43 am

Try this code which is very closed to yours, I hope you'll like it.I've used this code longer time.
So, in the userchrome.css (c\documents and setting\user\Application data\thunderbird\profile\chrome\userchrome. css)add this code:

Code: Select all
/*** Messagepane text ***/

treechildren:-moz-tree-cell-text(unread) {
font-weight: bold !important;
color: rgb(255,0,0) !important;
font-size: 9pt !important;
font-family: Arial !important;
font-style:italic !important;}

Restart TB, send e-mail to yourself to see a different at once.

Howard Kaikow
 
Posts: 606
Joined: November 6th, 2004, 4:41 pm

Post Posted November 19th, 2005, 10:06 am

Thanx.
I'll give that a try,

Howard Kaikow
 
Posts: 606
Joined: November 6th, 2004, 4:41 pm

Post Posted November 19th, 2005, 4:41 pm

zoriv wrote:Try this code which is very closed to yours, I hope you'll like it.I've used this code longer time.
So, in the userchrome.css (c\documents and setting\user\Application data\thunderbird\profile\chrome\userchrome. css)add this code:

Code: Select all
/*** Messagepane text ***/

treechildren:-moz-tree-cell-text(unread) {
font-weight: bold !important;
color: rgb(255,0,0) !important;
font-size: 9pt !important;
font-family: Arial !important;
font-style:italic !important;}

Restart TB, send e-mail to yourself to see a different at once.


The above code colors the mail item, I was asking about a way to color the mailbox.

zoriv

User avatar
 
Posts: 1249
Joined: May 6th, 2005, 2:01 pm

Post Posted November 19th, 2005, 6:19 pm


Howard Kaikow
 
Posts: 606
Joined: November 6th, 2004, 4:41 pm

Post Posted November 20th, 2005, 1:52 am

zoriv wrote:Maybe you mean for this effect:
[img][img]http://img502.imageshack.us/img502/5466/capturewiz0022ot.jpg[/img][/img]


i just want to highlight the mail boxes that have unread mail in a color other than bold black.
when quickly scrolling thru the mailboxes, it is too easy to miss bold black, esapecially with aging eyes.

zoriv

User avatar
 
Posts: 1249
Joined: May 6th, 2005, 2:01 pm

Post Posted November 20th, 2005, 4:03 am

Inspite of all my efforts to find common solution , unfortunately, I can't understand what is your idea to do.I'm sorry for the wrong answers.

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

Post Posted November 20th, 2005, 4:47 am

I use something like this (only more complicated), in userChrome.css.
Code: Select all
/* when folder has unread messages */
treechildren::-moz-tree-cell-text(hasUnreadMessages-true) {
  color: #3300FF !important;
}

/* when subfolder has unread messages */
treechildren::-moz-tree-cell-text(closed, subfoldersHaveUnreadMessages-true) {
  color: #66CC00 !important;
}

/* when new messages are in folder */
treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true),
treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true) {
  color: #FF0000 !important;
}

This will affect the folder pane items. For other colors, this is handy:
http://meyerweb.com/eric/tools/color-blend/

zoriv

User avatar
 
Posts: 1249
Joined: May 6th, 2005, 2:01 pm

Post Posted November 20th, 2005, 4:56 am

I've added your codes in userchrome.css, but I can't see any diference. Please,
let me see the screenshot.
This will affect the folder pane items. For other colors, this is handy:
http://meyerweb.com/eric/tools/color-blend/

Thank you very much for the information, although I've already known this address.Put this address in your bookmarks also.

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

Post Posted November 20th, 2005, 5:38 am

It looks like this, using the default Windows theme:
Image
Red for new, green for subfolder with unread, and blue for folder with unread.

zoriv

User avatar
 
Posts: 1249
Joined: May 6th, 2005, 2:01 pm

Post Posted November 20th, 2005, 6:06 am

Thank you for the idea. It's really nice. but I still keep for my code I'ver done it.

Howard Kaikow
 
Posts: 606
Joined: November 6th, 2004, 4:41 pm

Post Posted November 20th, 2005, 6:12 am

wintogreen wrote:It looks like this, using the default Windows theme:
Image
Red for new, green for subfolder with unread, and blue for folder with unread.


Thanx.

Your code works for me, at least the red and blue does.
I rarely, if ever save unread nessages, so I'll likely never see the green.

However, I looked at the Thunderbird KB, etc. and was ubable to find adequate explanation of the syntax and allowed values in the .css.

Where is this documented?
Where is treechildren documented?

zoriv

User avatar
 
Posts: 1249
Joined: May 6th, 2005, 2:01 pm

Post Posted November 20th, 2005, 6:40 am

However, I looked at the Thunderbird KB, etc. and was ubable to find adequate explanation of the syntax and allowed values in the .css.

Where is this documented?
Where is treechildren documented?


I don't know what's your ambtions with creating different features and changing the interface of TB or FF.
In this world of this codes took me my curiosity and one member( I can't say his alias, taking into the consideqartion his privacy) of this forum who helped me too much through the training and making different codes in TB and FF. What's my point of this. Surfing through this site you'll learn too much and acquired experince will make you to make your own codes for yr FF and TB. For the begining to learn more for some codes visit this site.

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

Post Posted November 20th, 2005, 6:44 am

I don't know if it is fully "documented" anywhere that's available to us mere users. I've just picked up things here and there -- from the forums (esp. people like bozz and jeroen_p), from poking around inside classic.jar (in the TB folder in Program Folders), and a bit from playing with the DOM inspector.
http://kb.mozillazine.org/DOM_Inspector

You might get some tips from this monster of a thread (though they might be talking more about Firefox than TB):
http://forums.mozillazine.org/viewtopic.php?t=244616

There are also some useful links here:
http://kb.mozillazine.org/CSS

zoriv

User avatar
 
Posts: 1249
Joined: May 6th, 2005, 2:01 pm

Post Posted November 20th, 2005, 6:54 am

To wintogreen:
Thanks a lot for http://forums.mozillazine.org/viewtopic.php?t=244616 site. I will just update my modest knowledge of syntax,

Return to Thunderbird General


Who is online

Users browsing this forum: No registered users and 1 guest