MozillaZine


userChrome code for account names with unread mail in them?

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

Post Posted June 23rd, 2022, 1:10 pm

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

Post Posted June 23rd, 2022, 3:23 pm


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

Post Posted June 23rd, 2022, 3:57 pm

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

Post Posted June 23rd, 2022, 5:36 pm

I think I misread your question. I assumed you wanted to style each account differently.

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

Post Posted June 23rd, 2022, 6:46 pm

Yeah, I just want to differentiate accounts with unread mail from those where I've gone through everything.

morat
 
Posts: 5351
Joined: February 3rd, 2009, 6:29 pm

Post Posted June 24th, 2022, 7:11 am

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: viewtopic.php?p=14931753#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: viewtopic.php?f=39&t=3077154

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

Post Posted June 30th, 2022, 3:13 pm

Thanks.

Return to Thunderbird General


Who is online

Users browsing this forum: No registered users and 1 guest