Change colour of little star indicating new mail in panel

User Help for Mozilla Thunderbird
Post Reply
Postscriptum
Posts: 2
Joined: November 19th, 2018, 1:43 am

Change colour of little star indicating new mail in panel

Post by Postscriptum »

I have several email address and they are generally unexpanded in the left panel. When a new email arrives a faint yellowish star appears on top of the envelope and padlock next to the relevant email address.
Can I change the colour of that star to a bright one like red or green or blue so that it will be more prominent? I appreciate that this has to be probably done in the css script but that is ok.
Any help and guidance is appreciated.
Thanks
morat
Posts: 6437
Joined: February 3rd, 2009, 6:29 pm

Re: Change colour of little star indicating new mail in pane

Post by morat »

Are you talking about a faint yellowish star in the subject column in the thread pane?

Subject column images
http://dxr.mozilla.org/comm-esr60/sourc ... essage.png

Try this:

Code: Select all

/* Thunderbird userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

treechildren::-moz-tree-image(subjectCol, new) {
  list-style-image: url("star.png") !important;
  -moz-image-region: rect(0px, 16px, 16px, 0px) !important;
}
http://kb.mozillazine.org/UserChrome.css

You would need to download a 16x16 star.png image to the chrome folder for the style to work correctly. To make the changes take effect, you must restart the application. However, after restarting a new message would no longer be considered as new, so you will have to wait for another new message to test the style.

Example image
http://forum.mozilla-russia.org/uploade ... button.png

Reference
http://dxr.mozilla.org/comm-esr60/searc ... eIcons.css

P.S.

Perhaps, you could use a css filter instead of changing the image.

Code: Select all

/* Thunderbird userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

treechildren::-moz-tree-image(subjectCol, new) {
  filter: hue-rotate(90deg) !important;
}
CSS filter
http://developer.mozilla.org/docs/Web/CSS/filter
Postscriptum
Posts: 2
Joined: November 19th, 2018, 1:43 am

Re: Change colour of little star indicating new mail in pane

Post by Postscriptum »

No. It is located on the left vertial Account Folder pane, to the very left of the account name itself. However the star is similar to the one you mentioned.
To the left of the account name is a little sealed envelope with a padlock superimposed on the bottom left of it. When new mail arrives that little faint yellowish star is superimposed on the top right corner of the envelope. Hope I'm making sense. To me that star is too faint and I would like to change it to a brighter colour, if possible.
morat
Posts: 6437
Joined: February 3rd, 2009, 6:29 pm

Re: Change colour of little star indicating new mail in pane

Post by morat »

Do you see the image in the following collection?

Server images
http://dxr.mozilla.org/comm-esr60/sourc ... server.png

i.e. second row, second column

If you want the faint yellowish star to be another color, then you would need to download the server.png image to the chrome folder, then you would need to change the image in an image editor like GIMP.

I can't use a css filter since it would change the color of the envelope and padlock as well.

Try this:

Code: Select all

/* Thunderbird userChrome.css */

@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* Secure mail server */

treechildren::-moz-tree-image(folderNameCol, isServer-true, biffState-NewMail, isSecure-true) {
  list-style-image: url("server.png") !important;
  -moz-image-region: rect(16px 32px 32px 16px) !important;
}
Reference
http://dxr.mozilla.org/comm-esr60/searc ... erPane.css
Post Reply