Bug 1436100 - Thunderbird part: Provide ThemeVariableMap.jsm. r=jorgk
authorRichard Marti <richard.marti@gmail.com>
Tue, 13 Feb 2018 11:36:49 +0100
changeset 31112 b74299720d0a093d2f86874288b9b545d6fae02f
parent 31111 9979f414b1af52c6db58465d57d231202708c324
child 31113 bbb96e5f8fa85657eb2608a63a801f5d5fc13fb7
push id383
push userclokep@gmail.com
push dateMon, 07 May 2018 21:52:48 +0000
reviewersjorgk
bugs1436100
Bug 1436100 - Thunderbird part: Provide ThemeVariableMap.jsm. r=jorgk
mail/base/modules/ThemeVariableMap.jsm
mail/base/modules/moz.build
new file mode 100644
--- /dev/null
+++ b/mail/base/modules/ThemeVariableMap.jsm
@@ -0,0 +1,29 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+var EXPORTED_SYMBOLS = ["ThemeVariableMap"];
+
+const ThemeVariableMap = [
+  ["--lwt-accent-color-inactive", "accentcolorInactive"],
+  ["--lwt-background-alignment", "backgroundsAlignment"],
+  ["--lwt-background-tiling", "backgroundsTiling"],
+  ["--tab-loading-fill", "tab_loading"],
+  ["--lwt-tab-text", "tab_text"],
+  ["--toolbar-bgcolor", "toolbarColor"],
+  ["--toolbar-color", "toolbar_text"],
+  ["--url-and-searchbar-background-color", "toolbar_field"],
+  ["--url-and-searchbar-color", "toolbar_field_text"],
+  ["--lwt-toolbar-field-border-color", "toolbar_field_border"],
+  ["--urlbar-separator-color", "toolbar_field_separator"],
+  ["--tabs-border-color", "toolbar_top_separator"],
+  ["--lwt-toolbar-vertical-separator", "toolbar_vertical_separator"],
+  ["--toolbox-border-bottom-color", "toolbar_bottom_separator"],
+  ["--lwt-toolbarbutton-icon-fill", "icon_color"],
+  ["--lwt-toolbarbutton-icon-fill-attention", "icon_attention_color"],
+  ["--lwt-toolbarbutton-hover-background", "button_background_hover"],
+  ["--lwt-toolbarbutton-active-background", "button_background_active"],
+  ["--arrowpanel-background", "popup"],
+  ["--arrowpanel-color", "popup_text"],
+  ["--arrowpanel-border-color", "popup_border"],
+];
--- a/mail/base/modules/moz.build
+++ b/mail/base/modules/moz.build
@@ -17,8 +17,12 @@ EXTRA_JS_MODULES += [
     'oauth.jsm',
     'quickFilterManager.js',
     'searchSpec.js',
     'sessionStoreManager.js',
     'summaryFrameManager.js',
     'Windows8WindowFrameColor.jsm',
 ]
 
+FINAL_TARGET_FILES.modules += [
+    'ThemeVariableMap.jsm'
+]
+