본 사이트는 여러분의 사용자 경험을 개선하기 위해 유지 보수를 진행하는 동안 기능이 제한됩니다. 도움말로 문제가 해결되지 않고 질문을 하고 싶다면 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.