Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

Tìm kiếm hỗ trợ

Tránh các lừa đảo về hỗ trợ. Chúng tôi sẽ không bao giờ yêu cầu bạn gọi hoặc nhắn tin đến số điện thoại hoặc chia sẻ thông tin cá nhân. Vui lòng báo cáo hoạt động đáng ngờ bằng cách sử dụng tùy chọn "Báo cáo lạm dụng".

Learn More

how to change color of newsgroup name in folder pane if there are new messages or unread messages

  • 2 trả lời
  • 1 gặp vấn đề này
  • 22 lượt xem
  • Trả lời mới nhất được viết bởi BillH

more options

I would like to change color of newsgroup names in the folder pane if there are new messages in that newsgroup.

I was able to change the name of the newsgroup itself using this code:

  1. folderTree treechildren::-moz-tree-cell-text(folderNameCol, serverType-nntp) {
 color: royalblue !important; 

}

I was able to change the color if there were unread messages in the newsgroup using this code:

  1. folderTree treechildren::-moz-tree-cell-text(folderNameCol, serverType-nntp, hasUnreadMessages-true) {
 color: green !important; 

}

I thought maybe this code would work if there were new messages in the newsgroup (something similar works for regular email account Inboxes):

  1. folderTree treechildren::-moz-tree-cell-text(folderNameCol, serverType-nntp, newMessages-true) {
 color: red !important; 

}

but that isn't working for me.

Any idea how I can get this to work? Have I got it coded incorrectly?

Thanks, Bill

I would like to change color of newsgroup names in the folder pane if there are new messages in that newsgroup. I was able to change the name of the newsgroup itself using this code: #folderTree treechildren::-moz-tree-cell-text(folderNameCol, serverType-nntp) { color: royalblue !important; } I was able to change the color if there were unread messages in the newsgroup using this code: #folderTree treechildren::-moz-tree-cell-text(folderNameCol, serverType-nntp, hasUnreadMessages-true) { color: green !important; } I thought maybe this code would work if there were new messages in the newsgroup (something similar works for regular email account Inboxes): #folderTree treechildren::-moz-tree-cell-text(folderNameCol, serverType-nntp, newMessages-true) { color: red !important; } but that isn't working for me. Any idea how I can get this to work? Have I got it coded incorrectly? Thanks, Bill

Tất cả các câu trả lời (2)

more options

The code actually has a "#' in column one, but the editor thought I meant a numbered list. The code actually looks like this without the quotes:

"#folderTree treechildren::-moz-tree-cell-text(folderNameCol, serverType-nntp) {

 color: royalblue !important; 

}"

"#folderTree treechildren::-moz-tree-cell-text(folderNameCol, serverType-nntp, newMessages-true) {

 color: red !important; 

}"

"#folderTree treechildren::-moz-tree-cell-text(folderNameCol, serverType-nntp, hasUnreadMessages-true) {

 color: green !important; 

}"

Được chỉnh sửa bởi BillH vào

more options

I moved the newMessages-true code after the hasUnreadMessages-true code and it is working now. Should have thought of that to begin with.

Bill