Tb 68.12.1 userChrome.css Tweaks

User Help for Mozilla Thunderbird
Post Reply
CBA
Posts: 235
Joined: June 16th, 2008, 2:08 am

Tb 68.12.1 userChrome.css Tweaks

Post by CBA »

Having ported most of my Tb 38.8 UI tweaks (Stylish) to Tb 68.12.1 (userChrome.css) I'm currently trialing the latter. I need help with a few CSS tweaks.

The below worked fine with Tb 38, but not with Tb 68 .. as the message header Subject remains bold black and not blue. Suggestions on how to fix this would be appreciated:

Code: Select all

/* change color of Message Header Subject */
#expandedsubjectBox .headerValue {
  font-weight: bold;
  color: blue !important; }
A 2nd issue concerns the Tb 68 Attachment Pane. When an attachment is deleted, it's marked deleted, a red cross (x) is added, and the deleted file name is overwritten with a strikeout line. How can I eliminate the strikeout line (which makes it difficult to read the deleted file name)?

Thanks!
Last edited by CBA on October 17th, 2020, 2:28 pm, edited 1 time in total.
morat
Posts: 6437
Joined: February 3rd, 2009, 6:29 pm

Re: Tb 68.12.1 userChrome.css Tweaks Needed

Post by morat »

These entries works here with Thunderbird 78.

Code: Select all

#expandedsubjectBox {
  font-weight: bold !important;
  color: blue !important;
}

Code: Select all

#attachmentName.notfound,
.attachmentItem.notfound {
  text-decoration-line: none !important;
}
CBA
Posts: 235
Joined: June 16th, 2008, 2:08 am

Re: Tb 68.12.1 userChrome.css Tweaks Needed

Post by CBA »

morat wrote:These entries works here with Thunderbird 78...
GREAT! You did it again .. both your suggestions work as advertised. Thanks!

As an encore of sorts, is there a way - in the compose/write window - to reduce the "row height" of the From: To: Cc: Bc: and Subject: line entries ?? I did this for the Folder and Thread Trees (much needed) and it would help to do the same for the compose/write window. TIA.
morat
Posts: 6437
Joined: February 3rd, 2009, 6:29 pm

Re: Tb 68.12.1 userChrome.css Tweaks Needed

Post by morat »

Sorry, I don't know how to style the address boxes in Thunderbird 68.

The developers completely redesigned the address boxes in Thunderbird 78.

Reference
http://searchfox.org/comm-esr68/search? ... t&path=xul
http://searchfox.org/comm-esr68/search? ... t&path=css
CBA
Posts: 235
Joined: June 16th, 2008, 2:08 am

Re: Tb 68.12.1 userChrome.css Tweaks Needed

Post by CBA »

morat wrote:Sorry, I don't know how to style the address boxes in Thunderbird 68...
Thanks. It's not a deal breaker, but it would be (visually) nice to find a way to reduce the address boxes row height. Have to keep on trying.

One more issue, the date box all the way to the right in the message header. Compared to 38, the date box location on 68 is closer to the window edge and too close for my liking. Is there a way to move it left a few pixels?
morat
Posts: 6437
Joined: February 3rd, 2009, 6:29 pm

Re: Tb 68.12.1 userChrome.css Tweaks Needed

Post by morat »

This entry works here with Thunderbird 78.

Code: Select all

.dateLabel {
  padding-inline-end: 1px !important; /* default 6px */
}
P.S.

I figured out the style using the Developer Toolbox.

More info: http://forums.mozillazine.org/viewtopic ... #p14866214
CBA
Posts: 235
Joined: June 16th, 2008, 2:08 am

Re: Tb 68.12.1 userChrome.css Tweaks Needed

Post by CBA »

morat wrote:This entry works here with Thunderbird 78...
And it works fine with Tb 68.12.1 as well! In my case, I use 60px to move the date box left to a position similar to Tb 38. Thanks, great job! :D
CBA
Posts: 235
Joined: June 16th, 2008, 2:08 am

Re: Tb 68.12.1 userChrome.css Tweaks Needed

Post by CBA »

FWIW, below a summary of the CSS code I use with my Tb 68.12.1. Works for me:

Code: Select all

/* set default namespace to XUL */
@namespace url(http://www.w3.org/1999/xhtml);
@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);


/* adjust (compress) the Folder Tree row height */
#folderTree > treechildren::-moz-tree-row {
	height: 19px !important;
	min-height: 19px !important;
}

/* adjust (compress) the Thread Tree row height */
#threadTree treechildren::-moz-tree-row {
	height: 18px !important;
	min-height: 18px !important;
}

/* change min-max height of Attachment Bar */
#attachmentBar  {
min-height: 23px !important;
max-height: 23px !important;
}

/* remove right side pull-down menu Attachment Bar */
#attachment-view-toolbar {
display: none !important;
}

/* remove deleted strikeout line Attachment Bar */
#attachmentName.notfound,
.attachmentItem.notfound {
  text-decoration-line: none !important;
}

/* Restore the Tree Lines */
#accounttree > treechildren::-moz-tree-line {
  visibility: visible !important;
}

#folderTree > treechildren::-moz-tree-line {
  visibility: visible !important;
}

/* hide address-book stars in Message Header */
.emailStar {
  width: 0em;
  visibility:hidden;
}

/* Message header pane labels */
#msgHeaderView .headerName {
  font-weight: bold;
  color: green !important;
}

/* change color of Message Header Subject */
#expandedsubjectBox {
  font-weight: bold !important;
  color: blue !important;
}

/* change color of Message Header Date-Time */
#dateValueBox {
  font-weight: bold;
  color: blue !important;
}

/* move date Box left (default 6px) */
.dateLabel {
  padding-inline-end: 60px !important;
}

/* remove Buttons and Top Padding in Message Header */
#header-view-toolbox, #otherActionsButton {
  display: none !important;
}

#expandedHeaderRows {
  padding-top: 0px !important;
}

#expandedBoxSpacer {
  height: 0px !important;
}

/* remove vertical padding inside message header pane */
.headerValue {
  line-height: normal !important; margin-bottom: 0.05em !important;
}

/* reduce the space between headers (the default height per row is 1.5em) */
.headerValue {
  line-height: 1.25em !important; padding: 0px !important;
}
Postscript: most of the CSS code I use has come from the mozillaZine forum (a true lifesaver...) and users like Morat, Buzz and many others. Thanks to all!
CBA
Posts: 235
Joined: June 16th, 2008, 2:08 am

Re: Tb 68.12.1 userChrome.css Tweaks Needed

Post by CBA »

morat wrote:Sorry, I don't know how to style the address boxes in Thunderbird 68...
Instead of messing with the style of the address boxes I changed the about:config setting "mail.compose.addresswidget.numRowsShownDefault" to 2 (default 3). The visual and practical impact balances my concern about the row height. For now, this will do!
Post Reply