How to change font for preview pane in userChrome.css (!)

User Help for Mozilla Thunderbird
Post Reply
thoste
Posts: 317
Joined: June 7th, 2003, 12:45 am

How to change font for preview pane in userChrome.css (!)

Post by thoste »

As you know the font family, size and line-height can only partially changed through Thunderbird GUI.

A better, more advanced way of customize the font for variosu parts of TB GUI is through the userChrome.css file in profile folder.

I specified e.g. so far:

* { font-size: 12px !important;
line-height: 13px !important;
font-family: Verdana !important;
}
/* */
#threadTree treechildren::-moz-tree-row
{ font-size: 13px !important; line-height: 13px !important; height: 13px !important; min-height: 13px !important; font-family: Verdana !important;}

#folderTree treechildren::-moz-tree-row
{ font-size: 13px !important; line-height: 13px !important; height: 13px !important; min-height: 13px !important; }

#abResultsTree treechildren::-moz-tree-row
{ font-size: 13px !important; line-height: 13px !important; height: 13px !important; min-height: 13px !important; }

#dirTree treechild3en::-moz-tree-row
{ font-size: 13px !important; line-height: 13px !important; height: 13px !important; min-height: 13px !important; }


Unfortunately this does NOT change the font, font-size, line-height and font-family for the preview pane in the lower right corner of Thunderbird which shows the content body of currently selected message.

So how do I adjust the font-size and font-family for this part of the TB GUI in userChrome.css?

Moreover: What are CSS tags in userChrome.css for the header parts just above the preview pane?

Thank you
Thomas
User avatar
smsmith
Moderator
Posts: 19979
Joined: December 7th, 2004, 8:51 pm
Location: Indiana

Re: How to change font for preview pane in userChrome.css (!

Post by smsmith »

Take a look at Tools -> Options -> Display, Formatting. Of special significance is the checkbox in the Advanced preferences of the Fonts & Colors section labelled "Allow messages to use other fonts".
Give a man a fish, and he eats for a day. Teach a man to fish, and he eats for a lifetime.
I like poetry, long walks on the beach and poking dead things with a stick.
Please do not PM me for personal support. Keep posts here in the Forums instead and we all learn.
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: How to change font for preview pane in userChrome.css (!

Post by tanstaafl »

thoste
Posts: 317
Joined: June 7th, 2003, 12:45 am

Re: How to change font for preview pane in userChrome.css (!

Post by thoste »

Thank you for suggestions

@smsmith: Whats exactly is meant by "other" in the options dialog?
- Other than the font specified just above this checkbos in the dialog
or
- Other than the font specified in userChrome.css
?

@tanstaafl:
Yes, I aleardy know this page. But on this webpages nothing is written about the message preview pane. Only about all other parts
So where do I get the CSS tags for the messages preview pane?
User avatar
smsmith
Moderator
Posts: 19979
Joined: December 7th, 2004, 8:51 pm
Location: Indiana

Re: How to change font for preview pane in userChrome.css (!

Post by smsmith »

"Other" in this instance means a font that is specified by the email sender. So if that checkbox is enabled and the sender specifically used a font in the email, that font would show when you read it, even if you had chosen a different font for viewing mail in your Thunderbird settings.
Give a man a fish, and he eats for a day. Teach a man to fish, and he eats for a lifetime.
I like poetry, long walks on the beach and poking dead things with a stick.
Please do not PM me for personal support. Keep posts here in the Forums instead and we all learn.
morat
Posts: 6405
Joined: February 3rd, 2009, 6:29 pm

Re: How to change font for preview pane in userChrome.css (!

Post by morat »

thoste wrote:change ... font-size ... for the preview pane in the lower right corner
Try this:

Code: Select all

/* Thunderbird userContent.css */

* { font-size: 28px !important; }
http://kb.mozillazine.org/UserContent.css

Similar thread: http://forums.mozillazine.org/viewtopic ... &t=3026801
thoste wrote:header parts just above the preview pane
Try this:

Code: Select all

/* Thunderbird userChrome.css */

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

#expandedHeaderView {
  background-color: gainsboro !important;
  font-size: 28px !important;
}
http://kb.mozillazine.org/UserChrome.css
thoste
Posts: 317
Joined: June 7th, 2003, 12:45 am

Re: How to change font for preview pane in userChrome.css (!

Post by thoste »

A few more related question:

The fonts specified in Tools -> Options -> Display, Formatting -> Fonts &Colors ---> Advanced:
Does this font definition has a higher priority than the font definition in userChrome.css resp. userContent.css?

Is this font definition (see above) only for the text body of messages (in preview pane) or for other purposes (menu, headers, messages list as well)?

Inside the Advanced dialog users have to select from dropdown "Fonts for" a font family.
Most of the time ist Latin but rarely its (for me) cyrillic.

What if a message contains latin AND cyrillic chars in parallel?
Is the target family found be interpretation or by a header line (which)?

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

Re: How to change font for preview pane in userChrome.css (!

Post by tanstaafl »

Wojtas696
Posts: 3
Joined: November 23rd, 2017, 3:49 am

Re: How to change font for preview pane in userChrome.css (!

Post by Wojtas696 »

Hi there,

I have a problem with those solutions. I want only one, _MY_ font in preview panel.
I've checked in options of TB not to use the fonts assigned by the sender - but it doesn't work. Each emails is displayed with it's own (?) font.

I would like to have only one font and one size of it. How to do this? What to put in userChrome.css?

Regards,

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

Re: How to change font for preview pane in userChrome.css (!

Post by tanstaafl »

Try setting a global UI font per http://kb.mozillazine.org/Pane_and_menu_fonts
Wojtas696
Posts: 3
Joined: November 23rd, 2017, 3:49 am

Re: How to change font for preview pane in userChrome.css (!

Post by Wojtas696 »

tanstaafl wrote:Try setting a global UI font per http://kb.mozillazine.org/Pane_and_menu_fonts
Doesn't work (change the rest, but not the preview window)
User avatar
tanstaafl
Moderator
Posts: 49647
Joined: July 30th, 2003, 5:06 pm

Re: How to change font for preview pane in userChrome.css (!

Post by tanstaafl »

Strange, I've used that before and I read my email in the preview pane. However, why not adjust the preview pane settings using Tools -> Options -> Display -> Fonts -> Advanced to use the same font/size. Make certain you set "minimum font size" and uncheck "allow messages to use other fonts".
Wojtas696
Posts: 3
Joined: November 23rd, 2017, 3:49 am

Re: How to change font for preview pane in userChrome.css (!

Post by Wojtas696 »

[
tanstaafl wrote:Make certain you set "minimum font size" and uncheck "allow messages to use other fonts".
I did it! - like shown on this picture (TB is in Polish)
https://drive.google.com/open?id=1uAfTS ... HWIKWkGAxO

and nothing....
Post Reply