userChrome code for account names with unread mail in them?

Discussion of general topics about Mozilla Thunderbird
Post Reply
Shemja
Posts: 104
Joined: January 19th, 2011, 11:35 am

userChrome code for account names with unread mail in them?

Post by Shemja »

In userChrome, how can I style different colors for my account names when the accounts contain unread mail?

I have working code for new mail and changing the default color of all the account names, but I can't find the right code to differentiate between no mail and unread mail in an account.
morat
Posts: 6474
Joined: February 3rd, 2009, 6:29 pm

Re: userChrome code for account names with unread mail in th

Post by morat »

Shemja
Posts: 104
Joined: January 19th, 2011, 11:35 am

Re: userChrome code for account names with unread mail in th

Post by Shemja »

Close. I'm guessing I can't make the account names change colors if there is unread mail in the account like I can if there is new mail? That seems like such a no-brainer code.
morat
Posts: 6474
Joined: February 3rd, 2009, 6:29 pm

Re: userChrome code for account names with unread mail in th

Post by morat »

I think I misread your question. I assumed you wanted to style each account differently.
Shemja
Posts: 104
Joined: January 19th, 2011, 11:35 am

Re: userChrome code for account names with unread mail in th

Post by Shemja »

Yeah, I just want to differentiate accounts with unread mail from those where I've gone through everything.
morat
Posts: 6474
Joined: February 3rd, 2009, 6:29 pm

Re: userChrome code for account names with unread mail in th

Post by morat »

Shemja wrote:That seems like such a no-brainer code.
I wrote some code snippets for the error console to help users create styles.

More info: http://forums.mozillazine.org/viewtopic ... #p14931753

I think the subfoldersHaveUnreadMessages-true property isn't available for an account name cell.

If a property isn't available for a particular cell, then you can't style using that property with the treechildren::-moz-tree-cell-text selector.

Similar thread: http://forums.mozillazine.org/viewtopic ... &t=3077154
Shemja
Posts: 104
Joined: January 19th, 2011, 11:35 am

Re: userChrome code for account names with unread mail in th

Post by Shemja »

Thanks.
Post Reply