Turning off boldface for folder names other than "Inbox"

User Help for Mozilla Thunderbird
Posts: 10
Joined: July 7th, 2017, 4:25 pm

Post Posted November 27th, 2019, 8:18 am

Thunderbird's longstanding feature of setting folder names in bold if the folder contains unread messages is handy, or at least innocuous, for my inbox, but is annoying for my trash and spam folders. How do I turn off the boldface, at least for folders other than inboxes?

In previous versions of Thunderbird (I'm now running 68.1.2 on Lubuntu 19.10), I could use the following `userChrome.css`:

Code: Select all
@namespace url("");

/* Only boldface the inbox when there are unread messages. */
   {font-weight: normal !important;}
treechildren:-moz-tree-cell-text(specialFolder-Inbox, hasUnreadMessages-true),
   {font-weight: bold !important;}

This now seems to have no effect, so I used the DOM inspector to look at the current classes and element names and came up with the following, at least to begin by turning off boldface:

Code: Select all
@namespace url("");

#folderTree treechildren
   {font-weight: normal !important;}

But this doesn't affect the boldface, either, even though in the DOM inspector I can see that the rule is active.

Bonus points for a way to remove the unread-messages counts as well.

Posts: 3634
Joined: February 3rd, 2009, 6:29 pm

Post Posted November 27th, 2019, 8:46 am

Try "treechildren::-moz-tree" instead of "treechildren:-moz-tree".


You can view the source of the folderPane.css file using the error console.

i.e. Tools > Developer Tools > Error Console (Ctrl+Shift+J)

Code: Select all
(function () {
  document.getElementById("tabmail").openTab("contentTab", {
    contentPage: "view-source:chrome://messenger/skin/folderPane.css",

Annoying that there is no source code available for Thunderbird 68 online.


Posts: 185
Joined: July 18th, 2019, 9:59 am

Post Posted November 27th, 2019, 9:20 am

I believe this works on TB 60, I don't have 68+ to test it on. This is effectively from my CSS for TB UI fonts posted in the TB-General forum.

Code: Select all
#folderTree > treechildren::-moz-tree-cell-text {
  font-weight: normal !important;

#folderTree > treechildren::-moz-tree-cell-text(hasUnreadMessages-true) {
    font-weight: normal !important;

You could also try using this.

Code: Select all

.tabmail-tab[type="folder"][SpecialFolder="Sent"] treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Sent),
.tabmail-tab[type="folder"][SpecialFolder="Drafts"] treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Drafts),
.tabmail-tab[type="folder"][SpecialFolder="Templates"] treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Templates),
.tabmail-tab[type="folder"][SpecialFolder="Junk"] treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Junk),
.tabmail-tab[type="folder"][SpecialFolder="Archive"] treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Archive),
.tabmail-tab[type="folder"][SpecialFolder="Outbox"] treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Outbox),
.tabmail-tab[type="folder"][SpecialFolder="Trash"] treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Trash) {
    font-weight: normal !important;

Posts: 10
Joined: July 7th, 2017, 4:25 pm

Post Posted November 28th, 2019, 6:52 am

Two colons in place of one seemed to do it. Thanks.

Return to Thunderbird Support

Who is online

Users browsing this forum: No registered users and 3 guests