Is there a TB Extension to Protect Your Eyes?

User Help for Mozilla Thunderbird
Post Reply
User avatar
koolx
Posts: 532
Joined: July 11th, 2014, 7:37 pm

Is there a TB Extension to Protect Your Eyes?

Post by koolx »

Is there an extension for a screen filter for TB? The white parts of it irritates my eyes. Let me know fellas!
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Is there a TB Extension to Protect Your Eyes?

Post by tanstaafl »

Not that I'm aware of. They all seem to be for Firefox. However by using CSS snippets in userChrome.css in the chrome directory in the profile you can probably get what you want. See http://kb.mozillazine.org/Pane_background_colors . I'd also browse http://kb.mozillazine.org/Bad_Eyesight_-_Thunderbird
User avatar
koolx
Posts: 532
Joined: July 11th, 2014, 7:37 pm

Re: Is there a TB Extension to Protect Your Eyes?

Post by koolx »

tanstaafl wrote:Not that I'm aware of. They all seem to be for Firefox. However by using CSS snippets in userChrome.css in the chrome directory in the profile you can probably get what you want. See http://kb.mozillazine.org/Pane_background_colors . I'd also browse http://kb.mozillazine.org/Bad_Eyesight_-_Thunderbird
Hi there.. I want to know if theres a code to change the background color to the white space in TB. Look at the screen shot attached circled in red. Do let me know.. thanks man!

Image
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Is there a TB Extension to Protect Your Eyes?

Post by tanstaafl »

What is that pane? its not the folder listing or folder pane. If its the preview pane see the first section of http://kb.mozillazine.org/Pane_background_colors .

You will need to add @namespace url("http://www.mozilla.org/keymaster/gateke ... s.only.xul"); to the top of userChrome.css, the KB article assumes you know that and only talks about the CSS snippet to change the background color etc.
User avatar
Eckard
Posts: 1414
Joined: September 5th, 2011, 8:17 am
Location: Paris (not TX)

Re: Is there a TB Extension to Protect Your Eyes?

Post by Eckard »

Hi,
koolx wrote: I want to know if theres a code to change the background color to the white space in TB. Look at the screen shot attached circled in red. Do let me know.. thanks man!
The "white space" in your screen shot is the so-called "Message Pane" (you are using the "Vertical View" layout).
You may copy/paste the following css-code in a text editor and save the file as "userContent.css":

Code: Select all

HTML {
background: #F6F6F6 !important; }   
body {
background: #F6F6F6  !important; }
Put this file in the "chrome" folder in the "xxxxxxxx.default" profile folder of Thunderbird and restart Thunderbird.
Adapt the color code to your likings.
It changes the background color in the Message Pane as well as in compose windows.
User avatar
koolx
Posts: 532
Joined: July 11th, 2014, 7:37 pm

Re: Is there a TB Extension to Protect Your Eyes?

Post by koolx »

Eckard wrote:Hi,
koolx wrote: I want to know if theres a code to change the background color to the white space in TB. Look at the screen shot attached circled in red. Do let me know.. thanks man!
The "white space" in your screen shot is the so-called "Message Pane" (you are using the "Vertical View" layout).
You may copy/paste the following css-code in a text editor and save the file as "userContent.css":

Code: Select all

HTML {
background: #F6F6F6 !important; }   
body {
background: #F6F6F6  !important; }
Put this file in the "chrome" folder in the "xxxxxxxx.default" profile folder of Thunderbird and restart Thunderbird.
Adapt the color code to your likings.
It changes the background color in the Message Pane as well as in compose windows.
Appreciate the help but the problem with using that code is it changes the background color of some of my emails (presumably HTML based mail) and also the background color of my messages. Cant have that. Is there a workaround to this?

Also, could you provide a code to change the background color when TB launches? I get a white flash which is blinding. Thanks!
User avatar
Eckard
Posts: 1414
Joined: September 5th, 2011, 8:17 am
Location: Paris (not TX)

Re: Is there a TB Extension to Protect Your Eyes?

Post by Eckard »

koolx wrote:
Appreciate the help but the problem with using that code is it changes the background color of some of my emails (presumably HTML based mail) and also the background color of my messages. Cant have that. Is there a workaround to this?
OK, forget my code in the userContent.css file.
Instead go to Tools > Options > Advanced > General and open the Config Editor.
Search for the option "browser.display.background_color", right-click on it and choose "Modifiy".
Replace the default value #FFFFFF by #F6F6F6 (or a color code of your choice).
Now the background color of the message (preview) pane and a plain text compose window will be #F6F6F6.
The background color in a HTML compose window will not be altered and you may choose any background color yourself.
Also, could you provide a code to change the background color when TB launches? I get a white flash which is blinding.
I can't reproduce your issue in my Thunderbird (Mac) versions since I'm seeing a light-gray background when TB launches.
User avatar
koolx
Posts: 532
Joined: July 11th, 2014, 7:37 pm

Re: Is there a TB Extension to Protect Your Eyes?

Post by koolx »

Eckard wrote: OK, forget my code in the userContent.css file.
Instead go to Tools > Options > Advanced > General and open the Config Editor.
Search for the option "browser.display.background_color", right-click on it and choose "Modifiy".
Replace the default value #FFFFFF by #F6F6F6 (or a color code of your choice).
Now the background color of the message (preview) pane and a plain text compose window will be #F6F6F6.
The background color in a HTML compose window will not be altered and you may choose any background color yourself.
Hi. It changes the white space in TB but this unfortunately also changes the background color of the html mail. Is there a way to isolate this from changes the html background color?
User avatar
Eckard
Posts: 1414
Joined: September 5th, 2011, 8:17 am
Location: Paris (not TX)

Re: Is there a TB Extension to Protect Your Eyes?

Post by Eckard »

koolx wrote:
Hi. It changes the white space in TB but this unfortunately also changes the background color of the html mail.
No. It may change the (background color) of the normally bright white space on the left and the right border of certain HTML mails in the message pane like in the following example (I'm using browser.display.background_color -> #E0F2F7):

Image

Do you prefer flashing white spaces instead of light grayish cyan spaces?

In most of the other HTML mails my grayish cyan background color is not visible at all:

Image
Is there a way to isolate this from changes the html background color?
I don't know about any other way.
DN123ABC
Posts: 695
Joined: January 9th, 2017, 10:10 am

Re: Is there a TB Extension to Protect Your Eyes?

Post by DN123ABC »

On my daughter's iphone, the whole thing turns this yellowish color, based on the time. I think she read somewhere that the bluish light is bad for your eyes, and there is either a setting or an app that adjusts based on your time zone and time settings. I find it ugly and a bit odd, but what do I know?
User avatar
koolx
Posts: 532
Joined: July 11th, 2014, 7:37 pm

Re: Is there a TB Extension to Protect Your Eyes?

Post by koolx »

Eckard wrote:
In most of the other HTML mails my grayish cyan background color is not visible at all:
Thanks eckard. Now can you help me with something else? I'm not able to change the font size of mail in TB in settings. I dont know why this is happening. Could you help?
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: Is there a TB Extension to Protect Your Eyes?

Post by tanstaafl »

"On my daughter's iphone, the whole thing turns this yellowish color, based on the time. I think she read somewhere that the bluish light is bad for your eyes, and there is either a setting or an app that adjusts based on your time zone and time settings. I find it ugly and a bit odd, but what do I know?"

That is why I run f.lux on my PC. Microsoft is going to add a similar feature in Windows 10 in the "Creators Update" in April according to http://www.ghacks.net/2017/01/12/window ... ight-mode/
User avatar
Eckard
Posts: 1414
Joined: September 5th, 2011, 8:17 am
Location: Paris (not TX)

Re: Is there a TB Extension to Protect Your Eyes?

Post by Eckard »

koolx wrote: I'm not able to change the font size of mail in TB in settings.
Maybe the following support articles can help:
http://kb.mozillazine.org/Font_settings_in_Thunderbird
http://kb.mozillazine.org/Pane_and_menu_fonts
http://kb.mozillazine.org/Bad_Eyesight_-_Thunderbird
Post Reply