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.
userChrome code for account names with unread mail in them?
-
- Posts: 88
- Joined: January 19th, 2011, 11:35 am
-
- Posts: 6025
- Joined: February 3rd, 2009, 6:29 pm
-
- Posts: 88
- Joined: January 19th, 2011, 11:35 am
Re: userChrome code for account names with unread mail in th
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.
-
- Posts: 6025
- Joined: February 3rd, 2009, 6:29 pm
Re: userChrome code for account names with unread mail in th
I think I misread your question. I assumed you wanted to style each account differently.
-
- Posts: 88
- Joined: January 19th, 2011, 11:35 am
Re: userChrome code for account names with unread mail in th
Yeah, I just want to differentiate accounts with unread mail from those where I've gone through everything.
-
- Posts: 6025
- Joined: February 3rd, 2009, 6:29 pm
Re: userChrome code for account names with unread mail in th
I wrote some code snippets for the error console to help users create styles.Shemja wrote:That seems like such a no-brainer code.
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
-
- Posts: 88
- Joined: January 19th, 2011, 11:35 am