![Thunderbird: "선택됨" 탭 배경색 변경](https://linux55.com/image/174895/Thunderbird%3A%20%22%EC%84%A0%ED%83%9D%EB%90%A8%22%20%ED%83%AD%20%EB%B0%B0%EA%B2%BD%EC%83%89%20%EB%B3%80%EA%B2%BD.png)
색상으로 레이블을 정의했습니다.
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개 레이블은 기본값에서 이름을 바꾸더라도 위와 같이 유지됩니다.)
다섯 번째를 제외하고 태그는 소문자 이름과 접두사로 참조됩니다 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;
}
답변2
내 생각에는 그것보다 좀 더 복잡할 것 같은데 실제로는할 수 있는텍스트에 공백이 포함된 태그를 처리합니다.
about:config를 열고 "mailnews.tags"를 검색하세요. "mainnews.tags.custom.color 및 mailnews.tags.custom.tag"와 같은 내용이 표시됩니다.
패턴은 mailnews.tags.XXX.color 및 mailnews.tags.XXX.tag입니다.
CSS에서는 TXXX 값을 사용합니다. 그러나 XXX가 $labelN과 유사한 경우 "T_24labelN"을 사용하세요.
라벨을 생성할 때 공백이 있으면 라벨을 생성할 때 사용한 TB 버전에 따라 다른 동작을 수행하는 것 같습니다. $labelN 패턴을 사용하는 이전 패턴이 있고 공백이 있는 곳에 밑줄만 사용하는 새 패턴이 있습니다.
실제 태그 텍스트/값을 변경하면 mailnews.tag.XXX.color 및 mailnews.tags.XXX.tag의 "XXX" 부분이 변경됩니다.아니요변화. 원래 "custom"을 사용하여 레이블을 만든 다음 레이블 텍스트를 "custom"에서 "whatever"로 변경했다고 가정하고 여전히 "Tcustom"을 사용합니다.아니요"그래도". 구성 항목은 여전히 mailnews.tag.custom.color 및 mailnews.tag.custom.tag입니다. mailnews.tag.custom.tag의 VALUE만 변경됩니다.
물론 버그가 있을 수 있으며 필요한 경우 개발자가 이를 변경할 수 있습니다.