色でラベルを定義しました。
grep 'mailnews.tags.' prefs.js
user_pref("mailnews.tags.test.color", "#f2a064");
user_pref("mailnews.tags.test.tag", "TEST");
user_pref("mailnews.tags.lists.color", "#3baff4");
user_pref("mailnews.tags.lists.tag", "lists");
メッセージが表示されると、テキストは上記で定義された色を持ちます。ただし、カーソルを移動すると、選択したマーカーメッセージはこの色(またはその派生色)を白いテキストと共に背景色として使用します。これにより、ラベルの色も明るいトーンの場合、ラベルを読み取ることができなくなります。
私はすでに私の中にいます。ユーザーChrome.css:
treechildren::-moz-tree-cell(lc-F2A064, selected) {
background-color: #B63C29 !important;
}
treechildren::-moz-tree-cell-text(lc-F2A064, selected) {
color: #F7FF7C !important;
}
treechildren::-moz-tree-cell(lc-3BAFF4, selected) {
background-color: #B63C29 !important;
}
treechildren::-moz-tree-cell-text(lc-3BAFF4, selected) {
color: #F7FF7C !important;
}
しかし、これはあまり効果がないようです。
私はDebianでThunderbirdを使用しています68.8
。
簡単に言えば、ラベルテキストの色を定義する方法を知っています。しかし、表示するメッセージを選択するとき(現在のカーソルがメッセージの上にある場合)、背景色をどのように定義しますか?
ベストアンサー1
ラベルは「lc-」プレフィックスカラー値として参照されなくなりました。
最初の5つのタグが呼び出されます。T_24label#
ここでは#
タグ番号です。たとえば、デフォルトの「重要」ラベルはですT_24label1
。 (私の経験では、最初の5つのラベルはデフォルトから名前を変更しても上記のように保持されます。)
5番目を除いて、タグは小文字の名前とプレフィックスとして参照されますT
。たとえば、「Tech」というタグはと呼ばれますTtech
。ただし、「新しいメッセージ」や「非常に重要」など、名前にスペースを含むラベルを参照できるかどうかはわかりません。
上記の情報は応答から抽出されました(いいえ「選択されたソリューション」)をMozillaサポートスレッドにタグ:テキストの代わりに色の背景。
たとえば、これは私が持っているすべてですユーザーChrome.css文書:
treechildren::-moz-tree-cell-text(selected) {
background-color: lightgrey !important;
color: black !important;
}
treechildren::-moz-tree-cell-text(selected, focus) {
background-color: Highlight !important;
color: white !important;
}
treechildren::-moz-tree-row {
border: none !important;
background-color: white !important;
}
treechildren::-moz-tree-row(selected) {
background-color: lightgrey !important;
}
treechildren::-moz-tree-row(selected, focus) {
background-color: Highlight !important;
}
/* Tag Important */
treechildren::-moz-tree-cell(T_24label1) {
background-color: #BF4040 !important;
}
treechildren::-moz-tree-cell(T_24label1, selected) {
background-color: #FFCCCC !important;
}
treechildren::-moz-tree-cell(T_24label1, selected, focus) {
background-color: #FF0000 !important;
}
treechildren::-moz-tree-cell-text(T_24label1) {
color: #FFF !important;
}
treechildren::-moz-tree-cell-text(T_24label1, selected) {
background-color: #FFCCCC !important;
color: #000 !important;
}
treechildren::-moz-tree-cell-text(T_24label1, selected, focus) {
background-color: #FF0000 !important;
color: #FFF !important;
}
/* Tag Financial */
treechildren::-moz-tree-cell(T_24label3) {
background-color: #1A5B1A !important;
}
treechildren::-moz-tree-cell-text(T_24label3) {
color: #FFF !important;
}
/* Tag Tech (9th tag) */
treechildren::-moz-tree-cell(Ttech) {
background-color: #339999 !important;
}
treechildren::-moz-tree-cell(Ttech, selected) {
background-color: #1aeaea !important;
}
treechildren::-moz-tree-cell(Ttech, selected, focus) {
background-color: #32c7c7 !important;
}
treechildren::-moz-tree-cell-text(Ttech) {
color: #FFF !important;
}
treechildren::-moz-tree-cell-text(Ttech, selected) {
background-color: #1aeaea !important;
color: #000 !important;
}
treechildren::-moz-tree-cell-text(Ttech, selected, focus) {
background-color: #32c7c7 !important;
color: #FFF !important;
}
TEST
そして、問題定義タグのタグを参照すると、次のようになります。最小実際のケース:
treechildren::-moz-tree-row(Ttest, selected) {
background-color: #B63C29 !important;
}
treechildren::-moz-tree-cell(Ttest, selected) {
background-color: #B63C29 !important;
}
treechildren::-moz-tree-cell-text(Ttest, selected) {
background-color: #B63C29 !important;
}