Change the background color of tags when an e-mail selected?

User Help for Mozilla Thunderbird
Post Reply
Dirki
Posts: 956
Joined: February 27th, 2009, 7:12 am

Change the background color of tags when an e-mail selected?

Post by Dirki »

How could I change the background color (of the tags) showing up when an e-mail is selected to keep the writing readable:
Image
https://imgur.com/Qm2CQlG
- Windows 11 Home, 22H2, 64bit
- newest stable portable Firefox (not beta)
- newest stable portable Thunderbird (not beta)
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Change the background color of tags when an e-mail selec

Post by tanstaafl »

If you set a tag on a message the foreground and background colors are exchanged when you select the message. You can set the tag colors in tools -> options -> display -> tags. I suggest you use lighter colors.

If you apply multiple tags to a message its not always clear which color it will use. It appears to prefer to use the color of the lowest numbered "label". i.e. the color for mailnews.tags.$label1.color (important) is displayed instead of mailnews.tags.$label4.tag (to do) when both tags are assigned to the same message. In my case that means it uses red instead of blue (or trying to display both colors, like it used to a couple of years ago).

Are you using a optional ..chrome\userChrome.css file or an add-on to modify any of the CSS values? Your tag seems to be brown, but the selected message is not a white foreground with a brown blackground, but a black foreground with a brown background.

I'm using Thunderbird 68.9.0 and 60.9.1 under Windows 10.
Dirki
Posts: 956
Joined: February 27th, 2009, 7:12 am

Re: Change the background color of tags when an e-mail selec

Post by Dirki »

If you set a tag on a message the foreground and background colors are exchanged when you select the message. You can set the tag colors in tools -> options -> display -> tags. I suggest you use lighter colors.
So one cannot manually make the background color lighter when using dark(er) fonts.
Are you using a optional ..chrome\userChrome.css file or an add-on to modify any of the CSS values?
No, I do not use a userChrome.css. And I do not use an add on doing such I would be aware of.
Your tag seems to be brown, but the selected message is not a white foreground with a brown blackground, but a black foreground with a brown background.
Yes, I chose a brown color. The fonts seem to be brown (when not selected) and brown or black (when selected):
Image

I have this portable one and Win 10 64bit:
Image
- Windows 11 Home, 22H2, 64bit
- newest stable portable Firefox (not beta)
- newest stable portable Thunderbird (not beta)
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Change the background color of tags when an e-mail selec

Post by tanstaafl »

"So one cannot manually make the background color lighter when using dark(er) fonts."

You misunderstand. The question is why isn't the selected message not using the same color pair (brown and white) as the non-selected tagged messages. It should have just reversed the color assignments. Instead it replaced white with black, creating black on a brown background. I think you want to change the foreground, NOT the background color. The background color is the tag color (which you want). The foreground should have been white when a tagged message was selected. For some unknown reason its black.

There is something different about your system, its just not clear what.

You could try to workaround this with setting the foreground color to white when a line in a folder listing is selected using userChrome.css. Leave the background color alone as that should be the tags color.

http://kb.mozillazine.org/UserChrome.css

See https://superuser.com/questions/133594/ ... n-no-focus for an example of setting the background color. http://forums.mozillazine.org/viewtopic ... 8&t=843215 is ancient but another example. You basically need to replace background-color with foreground-color in a snippet.
morat
Posts: 6432
Joined: February 3rd, 2009, 6:29 pm

Re: Change the background color of tags when an e-mail selec

Post by morat »

Thunderbird message tag editing? (see sfhowes' reply)
http://forums.mozillazine.org/viewtopic ... &t=3057136
Dirki
Posts: 956
Joined: February 27th, 2009, 7:12 am

Re: Change the background color of tags when an e-mail selec

Post by Dirki »

I think you want to change the foreground, NOT the background color.
Yes, for the selected message eithter that (would be the best) or a lighter background and keeping the foreground color.
You could try to workaround this with setting the foreground color to white when a line in a folder listing is selected using userChrome.css. Leave the background color alone as that should be the tags color.

http://kb.mozillazine.org/UserChrome.css
Thunderbird message tag editing? (see sfhowes' reply)
http://forums.mozillazine.org/viewtopic ... &t=3057136
Thank you!
See https://superuser.com/questions/133594/ ... n-no-focus for an example of setting the background color. viewtopic.php?f=18&t=843215 is ancient but another example. You basically need to replace background-color with foreground-color in a snippet.
OK, I will try that, thank you!
- Windows 11 Home, 22H2, 64bit
- newest stable portable Firefox (not beta)
- newest stable portable Thunderbird (not beta)
Post Reply