Bug 1534114 - Don't use the newmail colour when the folder is selected. r=aleca a=jorgk
authorRichard Marti <richard.marti@gmail.com>
Tue, 23 Jul 2019 16:42:20 +0200
changeset 35276 ac5fa35397b3ef98137ec55365a25eb6ed4b77b3
parent 35275 08b4ef086c49a56e2e4221cc21bc8dd7972afede
child 35277 9344b60b89f062d9f49f916aca27b65180ee4f90
push id2475
push usermozilla@jorgk.com
push dateFri, 02 Aug 2019 20:07:29 +0000
treeherdercomm-beta@c7b7a4c6679d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersaleca, jorgk
bugs1534114
Bug 1534114 - Don't use the newmail colour when the folder is selected. r=aleca a=jorgk
mail/themes/linux/mail/folderPane.css
mail/themes/osx/mail/folderPane.css
mail/themes/shared/mail/messenger.css
mail/themes/windows/mail/folderPane.css
--- a/mail/themes/linux/mail/folderPane.css
+++ b/mail/themes/linux/mail/folderPane.css
@@ -194,16 +194,22 @@ treechildren::-moz-tree-image(folderName
 /* ::::: All Servers ::::: */
 
 treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail),
 treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true),
 treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true) {
   color: -moz-hyperlinktext !important;
 }
 
+treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail, selected, focus),
+treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true, selected, focus),
+treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true, selected, focus) {
+  color: HighlightText !important;
+}
+
 treechildren::-moz-tree-cell-text(hasUnreadMessages-true),
 treechildren::-moz-tree-cell-text(folderNameCol, isServer-true),
 treechildren::-moz-tree-cell-text(closed, subfoldersHaveUnreadMessages-true) {
   font-weight: bold;
 }
 
 treechildren::-moz-tree-cell-text(folderNameCol, noSelect-true) {
   color: GrayText !important;
--- a/mail/themes/osx/mail/folderPane.css
+++ b/mail/themes/osx/mail/folderPane.css
@@ -321,16 +321,22 @@ treechildren::-moz-tree-image(folderName
 /* ::::: All Servers ::::: */
 
 treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail),
 treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true),
 treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true) {
   color: blue !important;
 }
 
+treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail, selected, focus),
+treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true, selected, focus),
+treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true, selected, focus) {
+  color: HighlightText !important;
+}
+
 treechildren::-moz-tree-cell-text(hasUnreadMessages-true),
 treechildren::-moz-tree-cell-text(closed, subfoldersHaveUnreadMessages-true) {
   font-weight: bold !important;
 }
 
 treechildren::-moz-tree-cell-text(folderNameCol, noSelect-true) {
   color: gray !important;
   font-style: italic;
--- a/mail/themes/shared/mail/messenger.css
+++ b/mail/themes/shared/mail/messenger.css
@@ -171,16 +171,25 @@ html|ul.addon-installed-list {
 
 :root[lwt-tree] treechildren::-moz-tree-image(selected),
 :root[lwt-tree] treechildren::-moz-tree-twisty(selected),
 :root[lwt-tree] #threadTree treechildren::-moz-tree-cell-text(untagged, selected),
 :root[lwt-tree] tree:not(#threadTree) treechildren::-moz-tree-cell-text(selected) {
   color: var(--sidebar-highlight-text-color, var(--sidebar-text-color));
 }
 
+:root[lwt-tree] #folderTree >
+  treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail, selected, focus),
+:root[lwt-tree] #folderTree >
+  treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true, selected, focus),
+:root[lwt-tree] #folderTree >
+  treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true, selected, focus) {
+  color: var(--sidebar-highlight-text-color, var(--sidebar-text-color)) !important;
+}
+
 :root[lwt-tree] treechildren::-moz-tree-line {
   border-color: var(--sidebar-text-color);
 }
 
 :root[lwt-tree] treechildren::-moz-tree-line(selected) {
   border-color: var(--sidebar-highlight-text-color, var(--sidebar-text-color));
 }
 
--- a/mail/themes/windows/mail/folderPane.css
+++ b/mail/themes/windows/mail/folderPane.css
@@ -211,16 +211,32 @@ treechildren::-moz-tree-image(folderName
 /* ::::: All Servers ::::: */
 
 treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail),
 treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true),
 treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true) {
   color: -moz-hyperlinktext !important;
 }
 
+@media (-moz-windows-default-theme: 0) {
+  treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail, selected, focus),
+  treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true, selected, focus),
+  treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true, selected, focus) {
+    color: HighlightText !important;
+  }
+}
+
+@media (-moz-windows-default-theme) {
+  treechildren::-moz-tree-cell-text(folderNameCol, isServer-true, biffState-NewMail, selected, focus),
+  treechildren::-moz-tree-cell-text(folderNameCol, newMessages-true, selected, focus),
+  treechildren::-moz-tree-cell-text(folderNameCol, specialFolder-Inbox, newMessages-true, selected, focus) {
+    color: -moz-DialogText !important;
+  }
+}
+
 treechildren::-moz-tree-cell-text(hasUnreadMessages-true),
 treechildren::-moz-tree-cell-text(folderNameCol, isServer-true),
 treechildren::-moz-tree-cell-text(closed, subfoldersHaveUnreadMessages-true) {
   font-weight: bold;
 }
 
 treechildren::-moz-tree-cell-text(folderNameCol, noSelect-true) {
   color: GrayText !important;