Why do I need to do this? For the following reason:
I styled my tags to have background-colors (for better visual emphasis):
my userChrome.css:
Code: Select all
/* important = red */
#threadTree > treechildren::-moz-tree-cell(lc-FF0000) {background-color:red!important}
#threadTree > treechildren::-moz-tree-cell-text(lc-FF0000) {color:white!important}
/* 2do = orange */
#threadTree > treechildren::-moz-tree-cell(lc-FF9900) {background-color:#FF9900!important}
#threadTree > treechildren::-moz-tree-cell-text(lc-FF9900) {color:white!important}
/* friends = blue */
#threadTree > treechildren::-moz-tree-cell(lc-3366FF) {background-color:#0066FF!important}
#threadTree > treechildren::-moz-tree-cell-text(lc-3366FF) {color:white!important}
My choice is a 1px dashed border and no background-color (i.e. a dashed cursor inside of which everything remains as is):
Code: Select all
#threadTree > treechildren::-moz-tree-row(selected,focus) {border:1px dashed black !important; background-color:transparent!important}
But this causes the text to disappear on untagged messages. I guess I now have white text on white background (since normally the selected message is displayed with white text on blue background, so when I disable the blue, I obviously get white-on-white).
So how can I prevent Thunderbird from setting the text-color of selected messages to white ?
I can set -moz-tree-cell-text color to black, which brings back the text, but the problem is, it is black for ALL messages. So a tagged message with, say, pink text color (determined by the tag) turns black when selected. But I want it to stay pink when selected:
I tried various keywords instead of "black", but none of them worked:
Code: Select all
inherit
initial
currentColor
Highlight
HighlightText
-moz-CellHighlight
-moz-CellHighlightText
-moz-html-CellHighlight
-moz-html-CellHighlightText
-moz-DialogText
So my question is:
How can I disable the text color of selected messages (without the aforementioned negative side-effects) ?
Once selected, Thunderbird turns the text color white. So it seems I'd need to
– either tell Thunderbird to use the tag color instead of white,
– or prevent "white" to be assigned in the first place (I thought "inherit" should work, but it doesn't),
– or maybe you know another solution altogether ?
Do you know, how to solve this problem?
Thank you.
PS: As you can see from the gif animation, the border style is lost on the yellow tagged eMail.
I would also be thankful for an explanation why this occurs and how to prevent that.