Bug 1481544 - Style the treecol with CSS on Windows Classic and HC themes. r=dao
authorRichard Marti <richard.marti@gmail.com>
Fri, 17 Aug 2018 11:58:19 +0200
changeset 487268 337ba2284d5cceb6d08468b199951a298aea1543
parent 487267 3ada76566234066a9adf2cc1daf8b52121dea27b
child 487269 1b24505ca96cc89af27486c0431e9f05cc9b979e
push id9719
push userffxbld-merge
push dateFri, 24 Aug 2018 17:49:46 +0000
treeherdermozilla-beta@719ec98fba77 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersdao
bugs1481544
milestone63.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1481544 - Style the treecol with CSS on Windows Classic and HC themes. r=dao
toolkit/themes/windows/global/tree.css
--- a/toolkit/themes/windows/global/tree.css
+++ b/toolkit/themes/windows/global/tree.css
@@ -22,8 +22,28 @@ treecol:not([hideheader="true"]) > .tree
   treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="ascending"] {
     list-style-image: url("chrome://global/skin/tree/sort-asc-classic.png");
   }
 
   treecol:not([hideheader="true"]) > .treecol-sortdirection[sortDirection="descending"] {
     list-style-image: url("chrome://global/skin/tree/sort-dsc-classic.png");
   }
 }
+
+@media (-moz-windows-classic) {
+  treecol,
+  treecolpicker {
+    border: 1px solid;
+    border-top-color: ThreeDHighlight;
+    border-inline-end-color: ThreeDShadow;
+    border-bottom-color: ThreeDShadow;
+    border-inline-start-color: ThreeDHighlight;
+    background-color: -moz-Dialog;
+  }
+
+  treecol:hover:active,
+  treecolpicker:hover:active {
+    border-top-color: ThreeDShadow;
+    border-inline-end-color: ThreeDHighlight;
+    border-bottom-color: ThreeDHighlight;
+    border-inline-start-color: ThreeDShadow;
+  }
+}