Windows 10 reached EOS (end of support) on October 14, 2025. For more information, see this article.

חיפוש בתמיכה

יש להימנע מהונאות תמיכה. לעולם לא נבקש ממך להתקשר או לשלוח הודעת טקסט למספר טלפון או לשתף מידע אישי. נא לדווח על כל פעילות חשודה באמצעות באפשרות ״דיווח על שימוש לרעה״.

מידע נוסף

change the color of a message using userChrome

  • 4 תגובות
  • 0 have this problem
  • תגובה אחרונה מאת Mapenzi

more options

I’m running Thunderbird 147.0.1 (64-bit) on both my desktop and laptop, both using Windows 11 Version 25H2 (Build 26200.7705). I’m trying to highlight sent (outgoing) messages where the correspondent and recipient are different (i.e., not sending to myself). When this condition is met, I want the subject line to appear green. My logic is: • Match outgoing mail where the correspondent column contains one of my addresses • Exclude rows where the recipient column also contains one of my addresses • Apply formatting only to the subject column tr:has(

   td.correspondentcol-column[title*="@pm.me"],
   td.correspondentcol-column[title*="@protonmail.com"],
   td.correspondentcol-column[title*="@passinbox.com"]

):not(

   :has(td.recipientcol-column[title*="@pm.me"]),
   :has(td.recipientcol-column[title*="@protonmail.com"]),
   :has(td.recipientcol-column[title*="@passinbox.com"])

) td.subjectcol-column {

 color: var(--tb-green) !important;
 font-weight: 600 !important;
 background-color: #e8f5e9 !important;

} Same Thunderbird version, same Windows build, same CSS file, same mail account structure. Is there something on the desktop system that could prevent this from working? For example: • about:config setting related to CSS • Layout or column differences affecting selectors • Rendering engine differences between installations • UI density / table layout mode differences My expectation is that this logic should behave identically on both systems, so I suspect a configuration or UI state difference. Any guidance would be appreciated.

I’m running Thunderbird 147.0.1 (64-bit) on both my desktop and laptop, both using Windows 11 Version 25H2 (Build 26200.7705). I’m trying to highlight sent (outgoing) messages where the correspondent and recipient are different (i.e., not sending to myself). When this condition is met, I want the subject line to appear green. My logic is: • Match outgoing mail where the correspondent column contains one of my addresses • Exclude rows where the recipient column also contains one of my addresses • Apply formatting only to the subject column tr:has( td.correspondentcol-column[title*="@pm.me"], td.correspondentcol-column[title*="@protonmail.com"], td.correspondentcol-column[title*="@passinbox.com"] ):not( :has(td.recipientcol-column[title*="@pm.me"]), :has(td.recipientcol-column[title*="@protonmail.com"]), :has(td.recipientcol-column[title*="@passinbox.com"]) ) td.subjectcol-column { color: var(--tb-green) !important; font-weight: 600 !important; background-color: #e8f5e9 !important; } Same Thunderbird version, same Windows build, same CSS file, same mail account structure. Is there something on the desktop system that could prevent this from working? For example: • about:config setting related to CSS • Layout or column differences affecting selectors • Rendering engine differences between installations • UI density / table layout mode differences My expectation is that this logic should behave identically on both systems, so I suspect a configuration or UI state difference. Any guidance would be appreciated.

כל התגובות (4)

more options

it is working very well on the laptop

more options

In Thunderbird on the Desktop PC did you toggle the advanced preference toolkit.legacyUserProfileCustomizations.stylesheets from false to true in Settings > General > Config Editor...?

more options

Yes, the other code in the userChrome.css works

toolkit.legacyUserProfileCustomizations.stylesheets = true

השתנתה ב־ על־ידי GrennyDar

more options

On your desktop PC do test with a userChrome.css file containing only the CSS code you show in your first message. Does your userChrome.css file begin with a text line the following?

@namespace url(http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul);

If yes, delete it for a test or replace it with the following line

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

פרסום שאלה

You must log in to your account to reply to posts. Please start a new question, if you do not have an account yet.