Bug 1344411 - Lightweight themes are not supported anymore in SeaMonkey. r=IanN a=IanN
authorTony Mechelynck [:tonymec] <antoine.mechelynck@gmail.com>
Wed, 05 Apr 2017 11:45:54 +0200
changeset 24465 509cbae906af
parent 24464 a393a71df238
child 24466 b850fc61a632
push id2058
push userfrgrahl@gmx.net
push dateSun, 16 Apr 2017 19:09:33 +0000
treeherdercomm-aurora@509cbae906af [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersIanN, IanN
bugs1344411
Bug 1344411 - Lightweight themes are not supported anymore in SeaMonkey. r=IanN a=IanN
suite/browser/navigator.css
suite/common/communicator.css
--- a/suite/browser/navigator.css
+++ b/suite/browser/navigator.css
@@ -16,16 +16,21 @@
 tabbrowser {
   -moz-binding: url("chrome://navigator/content/tabbrowser.xml#tabbrowser");
 }
 
 .tabbrowser-tabs {
   -moz-binding: url("chrome://navigator/content/tabbrowser.xml#tabbrowser-tabs");
 }
 
+.tabbrowser-tab:-moz-lwtheme:not([customization-lwtheme]) {
+  color: var(--lwt-text-color);
+  text-shadow: var(--lwt-accent-color);
+}
+
 .tabbrowser-arrowscrollbox {
   -moz-binding: url("chrome://navigator/content/tabbrowser.xml#tabbrowser-arrowscrollbox");
 }
 
 .tabs-alltabs-popup {
   -moz-binding: url("chrome://navigator/content/tabbrowser.xml#tabbrowser-alltabs-popup");
 }
 
--- a/suite/common/communicator.css
+++ b/suite/common/communicator.css
@@ -129,24 +129,40 @@ prefwindow[overflow="auto"] prefpane > .
   -moz-binding: url("chrome://communicator/content/bindings/general.xml#statusbarpanel-backgroundbox");
 }
 
 textbox[enablehistory="true"] > .autocomplete-history-dropmarker {
   display: -moz-box;
 }
 
 /******* lightweight themes *******/
+:root:-moz-lwtheme {
+  color: var(--lwt-text-color) !important
+}
+
+/**
+ * [customization-lwtheme] may or may not be used yet; we leave it in
+ * in case it moves to toolkit in the future.
+ */
+:root:-moz-lwtheme:not([customization-lwtheme]) {
+  background-color: var(--lwt-accent-color) !important;
+  background-image: var(--lwt-header-image) !important;
+}
+
 window[lwtheme="true"] {
   background-repeat: no-repeat;
   background-position: top right;
+  background-image: var(--lwt-header-image);
 }
 
-statusbar[lwthemefooter="true"] {
+:root[lwthemefooter="true"] #status-bar:-moz-lwtheme {
   background-repeat: no-repeat;
   background-position: bottom left;
+  background-color: var(--lwt-accent-color);
+  background-image: var(--lwt-header-image);
 }
 
 /******* sync *******/
 #sync-notifications {
   -moz-binding: url("chrome://communicator/content/sync/syncNotification.xml#notificationbox");
   overflow-y: visible !important;
 }