Trang web này sẽ có chức năng hạn chế trong khi chúng tôi trải qua bảo trì để cải thiện trải nghiệm của bạn. Nếu một bài viết không giải quyết được vấn đề của bạn và bạn muốn đặt câu hỏi, chúng tôi có cộng đồng hỗ trợ của chúng tôi đang chờ để giúp bạn tại @FirefoxSupport trên Twitter và /r/firefox trên Reddit.

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".

Tìm hiểu thêm

Colored Label

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

more options

Before the last update, when you assigned a colored label to the message (e.g., work, important, etc.), the entire title, header of the message, took the chosen color. Now you only see a small tag.

'The previous system was definitely more practical. Can it be reactivated?

Before the last update, when you assigned a colored label to the message (e.g., work, important, etc.), the entire title, header of the message, took the chosen color. Now you only see a small tag. 'The previous system was definitely more practical. Can it be reactivated?

Giải pháp được chọn

The procedure was a bit complex but I finally solved it, thanks. 😉

Đọc câu trả lời này trong ngữ cảnh 👍 0

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

more options

For Cards View, this can be done with css:

.card-container {
    background-color: var(--tag-color) !important;
}


To make just the card text have the tag colour:

.card-container {
    color: var(--tag-color) !important;
}


Help/Troubleshooting Info, Profile Folder, Open Folder, close TB, create a new folder named chrome, create a new document in chrome with a text editor, name it userChrome.css, Save as type: All files *.*, copy in the above code. Double-click toolkit.legacyUserProfileCustomizations.stylesheets to true in Settings/General/Config. editor, restart TB.

Online css generator

video on how to create a css file (Firefox and TB)

Hữu ích?

more options

OK thanks, but I find it a bit complicated for me...

I don't understand why this feature, active in the previous version of Thunderbird, has now been eliminated. It was convenient for a quick glance at messages 🙄

Hữu ích?

more options

The css is necessary for Cards View, which displays a small card icon with the colour of the tag. Table View shows the list with coloured text by default.

Hữu ích?

more options

Giải pháp được chọn

The procedure was a bit complex but I finally solved it, thanks. 😉

Hữu ích?

more options

sfhowes said

For Cards View, this can be done with css:
.card-container {
    background-color: var(--tag-color) !important;
}


To make just the card text have the tag colour:

.card-container {
    color: var(--tag-color) !important;
}


Help/Troubleshooting Info, Profile Folder, Open Folder, close TB, create a new folder named chrome, create a new document in chrome with a text editor, name it userChrome.css, Save as type: All files *.*, copy in the above code. Double-click toolkit.legacyUserProfileCustomizations.stylesheets to true in Settings/General/Config. editor, restart TB.

Online css generator

video on how to create a css file (Firefox and TB)

Thank you very much for this. I'll give it a go and have a play with it. I already have a Chrome file set up for other purposes.

Hữu ích?

more options

Sorry, I'm still not sure because I don't understand how the code needs to be modified:

what do I do with the

var(--tag-color)

line? How do I link that to a particular tag or colour? Could you give me an example please. Lets say I use the 'Important' tag which may be red.

Once I know how to do that I can create custom tags with custom colours and run a filter for each account.

Thanks again!

Hữu ích?

more options

The colour statement means that whatever colour is defined for the tag will be applied to the text or background. For the Important tag, the default colour is red, so that will be the colour of the text or background. See the attached pictures. You can of course define specific colours for each tagged message, independent of the tag colour.

Hữu ích?

more options

sfhowes said

The colour statement means that whatever colour is defined for the tag will be applied to the text or background. For the Important tag, the default colour is red, so that will be the colour of the text or background. See the attached pictures. You can of course define specific colours for each tagged message, independent of the tag colour.

Very cool, that looks fantastic. Thanks again for your help.

Righto, I understand that var(--tag-color) will define the color. Forgive me, but I don't know how to write it into that command. Would it be "color: var(red) !important;" for example? Or just simply "color: var red !important;" without the brackets.

Also, how does this code link to a specific email account? Would that not have to be specified somewhere?

So sorry. I quite obviously don't know much about coding.

Hữu ích?

more options

Just use the code in my first reply. It works for all accounts.

Hữu ích?

more options

sfhowes said

Just use the code in my first reply. It works for all accounts.

Ahaaaaahhh! Got it! I was over-complicating things in my mind, sorry. Works beautifully! Thanks for your patience with me.

Only problem is that emails that are tagged as NonJunk muck up the coloring, and often they arrive that way rather than me tagging them nonjunk. I'll have to set up some rule/filter that alleviates this.

Hữu ích?

more options

Success! My cards now match my account colors. So good. Thanks very much for your help.

It is, however, a bit of mucking around to set up message filters for each account to auto-tag all messages for a particular account with that account's tag...

Is there no code that will pick up the icon color for each account which can be set through the properties?

Brainstorming:

.card-container {

   color: var(--account-icon) !important;

}

or something like that? Or perhaps 'folderColor' ?

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

Hữu ích?

more options

I tried with var(--account-color) and var(--serverColor) but neither one works as expected.

This was supposedly added already:

https://bugzilla.mozilla.org/show_bug.cgi?id=1882369

Hữu ích?

more options

sfhowes said

I tried with var(--account-color) and var(--serverColor) but neither one works as expected. This was supposedly added already: https://bugzilla.mozilla.org/show_bug.cgi?id=1882369

Oh, that's cool - someone is on it. Let's hope that it actually works before too long.

Thanks again for your help sfhowes!

Hữu ích?

Đặt một câu hỏi

Bạn phải đăng nhập vào tài khoản của bạn để trả lời bài viết. Vui lòng bắt đầu một câu hỏi mới, nếu bạn chưa có tài khoản.