Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Help with userContent.css

228 views
Skip to first unread message

Peter Holsberg

unread,
Sep 18, 2013, 11:08:57 AM9/18/13
to Thunderbird
Before the current version of TB was installed, my display of accounts,
folders and subfolders would show information about which folders and
subfolders had new, unread messages. I believe that the lines below did
the trick.

However, for some reason, TB 24 is not responding to them and everything
in the accounts/folders/subfolders pane is unadorned.

Can anyone point out what I need to do?

Here are the lines:

/* Folder with unread/new messages */
treechildren::-moz-tree-cell-text(hasUnreadMessages-true)
{
color: red !important;
}

/* Folder with subfolder, contains unread/new messages */
treechildren::-moz-tree-cell-text(subfoldersHaveUnreadMessages-true)
{
color: red !important; font-weight: bold !important;
}

Is there a conflict perhaps with these lines?

/* Make Folders containing Unread_Messages visually distinct from others */
treechildren::-moz-tree-cell-text(folderNameCol, hasUnreadMessages-true)
{
color: blue !important;
}

/* Change Folder Display to indicate New Message(s) has arrived */
treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true)

{
color: red !important; font-weight: bold !important;
}

g

unread,
Sep 18, 2013, 12:19:04 PM9/18/13
to support-t...@lists.mozilla.org

hello again,

this time, i believe best reply is to send you to mozilla site so you can
read up on what you want to do.

start with this page:

http://kb.mozillazine.org/UserContent.css

also, read pages under;

Editing
Related files and folders
External links

and, check the links in those links.

this is not a "make it easy for you" reply. i *is* an _educate_ reply. ;=)

hth more.


--

peace out.

in a world with out fences, who needs gates.

sl6.3 linux

tc.hago.

g
.

Peter Holsberg

unread,
Sep 18, 2013, 12:59:46 PM9/18/13
to g, support-t...@lists.mozilla.org
Sorry, but that is not helpful. I would like to find out what is wrong
with this file:

/* the following @namespace line is necessary: don't remove */
@namespace
url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");


/* Change color of the Select bar in Folderpane and Messagepane windows */

treechildren:-moz-tree-cell-text(selected) {
background-color: yellow !important; color: black !important;
}
treechildren:-moz-tree-cell(selected) {
background-color: yellow !important;
}


/* Make Folders containing Unread_Messages visually distinct from others */
treechildren::-moz-tree-cell-text(folderNameCol, hasUnreadMessages-true)
{
color: blue !important;
}

/* Change Folder Display to indicate New Message(s) has arrived */
treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true)

{
color: red !important;
font-weight: bold !important;
}

I get a yellow Select bar in the Message pane, but not in the Folder pane.

I get no blue or red in the Folder pane.

Has the syntax changed?

WaltS

unread,
Sep 18, 2013, 1:26:20 PM9/18/13
to
I have code like that in my userChrome.css file, and it works.

Possible yours are conflicting with each other causing both not to work?
The MDN page indicates that userContent.css is used to "this file sets
the display rules for web content".

REF:
<https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Thunderbird_Configuration_Files>

Larry Gusaas

unread,
Sep 18, 2013, 1:43:54 PM9/18/13
to
The code I have for the folder pane in my userChrome.css file does not work in TB 24.0. It worked in the previous version.

The code for the other parts of TB still work.


Larry

_____________________________________________________________________________

Larry I. Gusaas

Moose Jaw, Saskatchewan   Canada
Website:   http://larry-gusaas.com
"An artist is never ahead of his time but most people are far behind theirs." - Edgard Varese


Peter Holsberg

unread,
Sep 18, 2013, 1:52:22 PM9/18/13
to support-t...@lists.mozilla.org
WaltS has written on 9/18/2013 1:26 PM:
> On 09/18/2013 12:59 PM, Peter Holsberg wrote:
>> Sorry, but that is not helpful. I would like to find out what is wrong
>> with this file:
>>
>> /* the following @namespace line is necessary: don't remove */
>> @namespace
>> url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
>>
>>
>> /* Change color of the Select bar in Folderpane and Messagepane windows */
>>
>> treechildren:-moz-tree-cell-text(selected) {
>> background-color: yellow !important; color: black !important;
>> }
>> treechildren:-moz-tree-cell(selected) {
>> background-color: yellow !important;
>> }
>>
>>
>> /* Make Folders containing Unread_Messages visually distinct from others */
>> treechildren::-moz-tree-cell-text(folderNameCol, hasUnreadMessages-true)
>> {
>> color: blue !important;
>> }
>>
>> /* Change Folder Display to indicate New Message(s) has arrived */
>> treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true)
>>
>> {
>> color: red !important;
>> font-weight: bold !important;
>> }
>>
>> I get a yellow Select bar in the Message pane, but not in the Folder pane.
>>
>> I get no blue or red in the Folder pane.
>>
>> Has the syntax changed?
>>
>
>
> I have code like that in my userChrome.css file, and it works.
>
> Possible yours are conflicting with each other causing both not to work?

It worked in prior versions of TB.

> The MDN page indicates that userContent.css is used to "this file sets
> the display rules for web content".
>
> REF:
> <https://developer.mozilla.org/en-US/docs/Mozilla/Thunderbird/Thunderbird_Configuration_Files>

No help.

Peter Holsberg

unread,
Sep 18, 2013, 1:53:18 PM9/18/13
to support-t...@lists.mozilla.org
Larry Gusaas has written on 9/18/2013 1:43 PM:
>
> The code I have for the folder pane in my userChrome.css file does not
> work in TB 24.0. It worked in the previous version.
>
> The code for the other parts of TB still work.

Me, too!! Another bug, I guess??

Peter Holsberg

unread,
Sep 18, 2013, 1:59:33 PM9/18/13
to support-t...@lists.mozilla.org
I reverted to 17.0.8.

Peter Holsberg has written on 9/18/2013 11:08 AM:
> Before the current version of TB was installed, my display of accounts,
> folders and subfolders would show information about which folders and
> subfolders had new, unread messages. I believe that the lines below did
> the trick.
>
> However, for some reason, TB 24 is not responding to them and everything
> in the accounts/folders/subfolders pane is unadorned.
>
> Can anyone point out what I need to do?
>
> Here are the lines:
>
> /* Folder with unread/new messages */
> treechildren::-moz-tree-cell-text(hasUnreadMessages-true)
> {
> color: red !important;
> }
>
> /* Folder with subfolder, contains unread/new messages */
> treechildren::-moz-tree-cell-text(subfoldersHaveUnreadMessages-true)
> {
> color: red !important; font-weight: bold !important;
> }
>
> Is there a conflict perhaps with these lines?
>

WaltS

unread,
Sep 18, 2013, 2:11:03 PM9/18/13
to
This section of your code works in my *user.Chrome.css* file.

/* Make Folders containing Unread_Messages visually distinct from others */

treechildren::-moz-tree-cell-text(folderNameCol, hasUnreadMessages-true)
{
color: blue !important;
}

/* Change Folder Display to indicate New Message(s) has arrived */

treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true)

{
color: red !important; font-weight: bold !important;
}

Just added this code and it also works.

/* Change color of the Select bar in Folderpane and Messagepane windows */

treechildren:-moz-tree-cell-text(selected) {
background-color: yellow !important; color: black !important;
}
treechildren:-moz-tree-cell(selected) {
background-color: yellow !important;
}

Complete code snippet.

/*
* Do not remove the @namespace line -- it's required for correct
functioning
*/
@namespaceurl("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");

/* set default namespace to XUL */

Peter Holsberg

unread,
Sep 18, 2013, 4:19:28 PM9/18/13
to support-t...@lists.mozilla.org
g has written on 9/18/2013 2:38 PM:
>
> hello pete,
>
> On 09/18/2013 12:59 PM, Peter Holsberg wrote:
>> I reverted to 17.0.8.
>
> good move. with all the bug reports for thunderbird 24, that is most likely
> a smart move.
>
> problem is that you are now open for security breeches. i do hope you are
> running your system behind a good firewall.

I'm using the one they used on the boardwalk at Seaside Heights, NJ.

»Q«

unread,
Sep 18, 2013, 5:06:40 PM9/18/13
to
In
<news:mailman.4371.1379535575....@lists.mozilla.org>,
If not moving to version 24, I'd move to Thunderbird 17.0.9 ESR. I
don't know how long 17.0.x will be supported with security updates, but
I guess 12 weeks, matching the Firefox ESR support pattern.

Chris Ramsden

unread,
Sep 18, 2013, 5:12:14 PM9/18/13
to Thunderbird
On 2013-09-18 16:08, Peter Holsberg wrote:
> Before the current version of TB was installed, my display of accounts,
> folders and subfolders would show information about which folders and
> subfolders had new, unread messages. I believe that the lines below did
> the trick.

It's becoming apparent that several add-ons are broken by TB24 with the
result that bold text and icons vanish.

Known issues are:

• Junquilla --> fixed in 1.0.3
• Remove Duplicate Messages (Alternate)
• Color Folders (or maybe "Colorful Folders"?)

Seems to be a case of "do not adjust your set" in respect of fiddling
with your css files. ;)

--

Chris.

»Q«

unread,
Sep 18, 2013, 5:58:58 PM9/18/13
to
In
<news:mailman.4403.1379526799....@lists.mozilla.org>,
Probably not a bug. XUL elements aren't expected to be the same from
version to version, otherwise there could never be any changes to the
interface.

You need to find out what CSS selectors to use with Thunderbird 24.
Somebody who knows how to use the Dom Inspector or another tool could
figure them out. I don't yet have Thunderbird 24, so I can't look
yet.

Larry Gusaas

unread,
Sep 18, 2013, 9:31:33 PM9/18/13
to
My problem was caused by an extension Junquilla 1.0.2 --> fixed in 1.0.3.

So don't play with userChrome until you check out your extensions.

Wayne

unread,
Sep 19, 2013, 4:28:48 AM9/19/13
to
On 9/18/2013 5:12 PM, Chris Ramsden wrote:
> On 2013-09-18 16:08, Peter Holsberg wrote:
>> Before the current version of TB was installed, my display of accounts,
>> folders and subfolders would show information about which folders and
>> subfolders had new, unread messages. I believe that the lines below did
>> the trick.
>
> It's becoming apparent that several add-ons are broken by TB24 with the
> result that bold text and icons vanish.
>
> Known issues are:
>
> • Junquilla --> fixed in 1.0.3
> • Remove Duplicate Messages (Alternate)

appears to be fixed in update version 0.3.9b

> • Color Folders (or maybe "Colorful Folders"?)

Color Folders
https://addons.mozilla.org/en-US/thunderbird/addon/color-folders/

FWIW, Account Colors -
https://addons.mozilla.org/en-US/thunderbird/addon/account-colors/ had
trouble at some intermediate versions and perhaps had the same issue as
these other addons, is working fine for me at version 6.9

Wayne

unread,
Sep 19, 2013, 8:37:39 AM9/19/13
to
I revise my remarks - Account Colors fails for new message colors

Eckard

unread,
Sep 19, 2013, 12:32:30 PM9/19/13
to
No change here for my userChrome tweaks after the update from TB 17 to
TB 24!
Your code in my userChrome.css file (and not in *userContent.css*) works
perfectly here with TB 24 (Mac) in one of my test profiles:

<http://i1274.photobucket.com/albums/y440/mapenzi5/userChrome2_zps046c2af9.png>

Peter Holsberg

unread,
Sep 19, 2013, 1:14:36 PM9/19/13
to support-t...@lists.mozilla.org
Chris Ramsden has written on 9/18/2013 5:12 PM:
> On 2013-09-18 16:08, Peter Holsberg wrote:
>> Before the current version of TB was installed, my display of accounts,
>> folders and subfolders would show information about which folders and
>> subfolders had new, unread messages. I believe that the lines below did
>> the trick.
>
> It's becoming apparent that several add-ons are broken by TB24 with the
> result that bold text and icons vanish.
>
> Known issues are:
>
> • Junquilla --> fixed in 1.0.3
> • Remove Duplicate Messages (Alternate)

That was it! Thanks, Chris.

EE

unread,
Sep 19, 2013, 4:17:13 PM9/19/13
to
You need the namespace line in userChrome.css, but not in userContent.css.
However, since you are dealing with trees in the main window, that is
chrome, not content, so you have the wrong stylesheet.


EE

unread,
Sep 19, 2013, 4:23:01 PM9/19/13
to
The tree structures in the main window are actually chrome, not content.
You need to use a userChrome.css file.

Dave Pyles

unread,
Sep 19, 2013, 5:53:00 PM9/19/13
to
For what it's worth, I didn't have the Junquilla extension installed and
still had the problem. Removing the "Remove Duplicate Messages
(Alternate)" extension, fixed it.

Dave Pyles

Peter Holsberg

unread,
Sep 19, 2013, 6:41:32 PM9/19/13
to support-t...@lists.mozilla.org
Dave Pyles has written on 9/19/2013 5:53 PM:
That's what I meant. :-)

WaltS

unread,
Sep 19, 2013, 6:52:41 PM9/19/13
to
Well golly Peter you have around here long enough to know to "Restart
with Add-ons Disabled" to see if an extension is causing the problem. I
expected you had done that.

Anyway it wasn't a complete waste of my time trying to help. I now have
a nice userChrome.css file that works nice with the Nautipolis theme or
default theme.

Peter Holsberg

unread,
Sep 19, 2013, 8:01:47 PM9/19/13
to support-t...@lists.mozilla.org
WaltS has written on 9/19/2013 6:52 PM:
>
> Well golly Peter you have around here long enough to know to "Restart
> with Add-ons Disabled" to see if an extension is causing the problem. I
> expected you had done that.

It always dumbfounds me that something that has worked for years is
suddenly causing a problem! But I will hang my head in shame. Thanks,
Uncle Walt. ;-)

natha...@gmail.com

unread,
Feb 19, 2014, 3:02:28 PM2/19/14
to
The following code worked for me to change sub folders with unread message to be bold red. I'm using Thubderbird 24.3.0 with the following extensions turned on. Account Colors 7.0, Color Folders 1.1, and Lighting 2.6.4.

I can't tell you how much this helps me. With over 100 sub folders and filters for around 80% of my emails it was getting easy to over look new emails.

------ CODE THAT WORKED! --------
treechildren::-moz-tree-cell-text(folderNameCol, hasUnreadMessages-true)
{
color: red !important;
}

/* Change Folder Display to indicate New Message(s) has arrived */
treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true)

{
color: red !important;
font-weight: bold !important;
}
------ CODE THAT WORKED! --------
0 new messages