Join the AMA (Ask Me Anything) with the Firefox leadership team to celebrate Firefox 20th anniversary and discuss Firefox’s future on Mozilla Connect. Mark your calendar on Thursday, November 14, 18:00 - 20:00 UTC!

為了改善您的使用體驗,本網站正在進行維護,部分功能暫時無法使用。若本站的文件無法解決您的問題,想要向社群發問的話,請到 Twitter 上的 @FirefoxSupport 或 Reddit 上的 /r/firefox 發問,我們的社群成員將很快會回覆您的疑問。

搜尋 Mozilla 技術支援網站

防止技術支援詐騙。我們絕對不會要求您撥打電話或發送簡訊,或是提供個人資訊。請用「回報濫用」功能回報可疑的行為。

了解更多

Thunderbird 115 now ignores my userChrome.css

  • 9 回覆
  • 3 有這個問題
  • 1 次檢視
  • 最近回覆由 mtness

more options

I have a userChrome.css to change the color of unread messages in the "list of messages" pane to orange:

/* Messagepane text */ treechildren::-moz-tree-cell-text(new) {

       color: #34ebdc !important;
       font-weight: normal;

} treechildren::-moz-tree-cell-text(unread) {

       color: #34c6eb !important;
       font-weight: normal !important;

}

This worked fine in TB 102 and prior. When I upgraded to TB 115 this no longer has any effect. I'm not sure if the userChrome.css is being ignored or if the styling elements in userChrome.css have changed.

I'm on Windows 11 and userChrome.css is located in 2 places: C:\Users\$username\AppData\Roaming\Thunderbird\Profiles\$profile.default\chrome\userChrome.css C:\Users\$username\Application Data\Thunderbird\Profiles\$profile.default\chrome\userChrome.css

I have a userChrome.css to change the color of unread messages in the "list of messages" pane to orange: /* Messagepane text */ treechildren::-moz-tree-cell-text(new) { color: #34ebdc !important; font-weight: normal; } treechildren::-moz-tree-cell-text(unread) { color: #34c6eb !important; font-weight: normal !important; } This worked fine in TB 102 and prior. When I upgraded to TB 115 this no longer has any effect. I'm not sure if the userChrome.css is being ignored or if the styling elements in userChrome.css have changed. I'm on Windows 11 and userChrome.css is located in 2 places: C:\Users\$username\AppData\Roaming\Thunderbird\Profiles\$profile.default\chrome\userChrome.css C:\Users\$username\Application Data\Thunderbird\Profiles\$profile.default\chrome\userChrome.css

被選擇的解決方法

I had a similar problem: my requirements weren't exactly the same as yours, but fairly similar.

Trying to translate my solution to your situation, you could try something like this:

   tr[is="thread-row"][data-properties~="new"] {
      color: #34ebdc !important;
      font-weight: normal;
   }
   tr[is="thread-row"][data-properties~="unread"] {
      color: #34c6eb !important;
      font-weight: normal !important;
   }


Not sure this is the best way to do it, but (something similar to) this worked for me, so fingers crossed it will help.

從原來的回覆中察看解決方案 👍 1

所有回覆 (9)

more options

Yes, some styling has changed, a lot of it actually. No, the userChrome.css is not being ignored, as some settings do work. My guess (just mine, I'm not a decision-maker) is that this will evolve over time. I also had many settings that do not work for now.

more options

david said

No, the userChrome.css is not being ignored

Given the explicit context, I think "ignored" is a fair way to put it.

As you say though, technically it's not the userChrome: 115 also ignores the colors set by the user through the UI, or anywhere else that I can find so far. (Good thing nobody has any accessibility issues with colors ever, right?)

It looks like it might get fixed someday though: several other color bugs have been already.

more options

Technically, in explicit context, the CSS is not being ignored. The problem is that the CSS code as written doesn't fit anymore. Since 115 has been released, several authors have shared CSS that works in 115 and that collection will continue to expand, but finding it will always be a search, as there has never been official support for CSS modifications. Several new CSS mods for color have surfaced here on the forum and this continues to be the place to find them. Like you, I have been watching and picking up bits and pieces of new CSS to replace what I used in 102.

more options

You give me too much credit: I'm far too lazy to maintain a pile of CSS on a regular basis.  :)

I just stopped by because 115 doesn't even use the colors that are in the *menus* for its actual colors. Not "semi-unsupported hacks": basic functionality, and that seemed a fairly absurd oversight for even a .0 release, let alone a .3, so I thought I had to be missing something. Since it's just outright broken right now though, I'm going to choose the better part of valor and revert to 102 until either it isn't or some Kind Hero - such as yourself :P - manages to collect enough MacGuffins to sort it out that way instead.

Incidentally, as it may come in handy at some point: there are a *lot* of color vars in about:config. None of them fix the Folder or Message panes (unless I missed some), but there may be some cases where they're useful enough that they can avoid needing more CSS (i.e. could be set in a deployable prefs.js or somesuch, or at least be easier for normal users to deal with).

Best of luck on the quest.  :)

more options

It's a valid point. Postbox is similar to Thunderbird and offers an infinite capability for color settings. That has never been a focus of Mozilla's.

more options

選擇的解決方法

I had a similar problem: my requirements weren't exactly the same as yours, but fairly similar.

Trying to translate my solution to your situation, you could try something like this:

   tr[is="thread-row"][data-properties~="new"] {
      color: #34ebdc !important;
      font-weight: normal;
   }
   tr[is="thread-row"][data-properties~="unread"] {
      color: #34c6eb !important;
      font-weight: normal !important;
   }


Not sure this is the best way to do it, but (something similar to) this worked for me, so fingers crossed it will help.

由 pg_78 於 修改

more options

Hot damn! That works! Thanks pg_78! Nice work!

more options

Using this css file by adding pg78 solution to my zebra stripe code that has never worked on one laptop yields unread new messages showing as blue.

/* ####### */ @namespace html url("http://www.w3.org/1999/xhtml");

  1. threadTree tr:nth-child(2n) {
 background-image: linear-gradient(rgba(150,145,220,.325), rgba(0,0,0,.08)) !important;  

}

tr[is="thread-row"][data-properties~="new"] {
     color: #34ebdc !important;
     font-weight: normal;
  }
  tr[is="thread-row"][data-properties~="unread"] {
     color: #34c6eb !important;
     font-weight: normal !important;
  }

So something is working just a mystery at this point why zebra stripes not working on this one laptop. I have the code for that working on other computers.

more options

FWIW - the namespace has changed, if I see this right. it is not XUL anymore, but html!

@namespace html url("http://www.w3.org/1999/xhtml");

If your userChrome stopped working, you should check that first.