Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Highlights messages according to tag colour #43

Open
gilbertohasnofb opened this issue Apr 23, 2020 · 2 comments
Open

Highlights messages according to tag colour #43

gilbertohasnofb opened this issue Apr 23, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@gilbertohasnofb
Copy link

Apologies but I've got one more question: I used TT DeepDark before switching to your theme (as the former is not compatible any longer), and that theme highlighted the messages according to their tag colours. So if a message was tagged as important, selecting it in the message list would highlight it red. With multiple tags, the first tag is the one that was used. If the message had no tags, the theme accent colour was used. Would it be possible to implement this behaviour?

@conema conema added the enhancement New feature or request label Apr 23, 2020
@conema
Copy link
Owner

conema commented Apr 23, 2020

Don't feel sorry for the questions, I'm happy to answer!

Yes, it is possible implement that behavior, but it can me a mess. The fastest way is to declare a special rule for your color, so for example, if you have a tag with color #00000, add to skin/messenger.css these lines:

treechildren::-moz-tree-row(lc-FFFFFF, selected, focus), .blc-FFFFFF {
  background-color: #FFFFFF !important;
}

Note that you need to change lc-FFFFFF, .blc-FFFFFF and #FFFFFF with the tag color hex code. You need one rule for each tag. I've not tested this, so I'm not sure if it's gonna work at first try.

@gilbertohasnofb
Copy link
Author

Thank you, I really appreciate it. I'll investigate if there is not a better way of doing the colour rule, the previous theme I used to use (before the upgrade broke it) was TT DeepDark, which had this feature and it worked with any tag colour, including custom tags with custom colours too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants