MozillaZine

Turning off boldface for folder names other than "Inbox"

User Help for Mozilla Thunderbird
Kodiologist
 
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("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* Only boldface the inbox when there are unread messages. */
treechildren:-moz-tree-cell-text
   {font-weight: normal !important;}
treechildren:-moz-tree-cell-text(specialFolder-Inbox, hasUnreadMessages-true),
    treechildren:-moz-tree-cell-text(unread)
   {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("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

#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.

morat
 
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".

P.S.

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.

Source
http://dxr.mozilla.org/
http://searchfox.org/

JYLD
 
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
/*Experimental*/

.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;
}

Kodiologist
 
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: Google [Bot] and 3 guests