mail/base/modules/ThemeVariableMap.jsm
author Richard Marti <richard.marti@gmail.com>
Thu, 31 May 2018 19:13:12 +0200
changeset 29802 2463d996da66ca52cab5cf840fcf24569962ff52
parent 29582 114551d2983b7e0f230c51caa19a098100fa8abe
child 29914 6361dc5b5b057f160e05e98206997d015cd90753
permissions -rw-r--r--
Bug 1465870 - Port bug 1459455 to TB: Allow changing the tab separator color. r=jorgk

/* 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", {
    lwtProperty: "accentcolorInactive"
  }],
  ["--lwt-background-alignment", {
    isColor: false,
    lwtProperty: "backgroundsAlignment"
  }],
  ["--lwt-background-tiling", {
    isColor: false,
    lwtProperty: "backgroundsTiling"
  }],
  ["--tab-loading-fill", {
    lwtProperty: "tab_loading",
  }],
  ["--lwt-tab-text", {
    lwtProperty: "tab_text"
  }],
  ["--tab-line-color", {
    lwtProperty: "tab_line",
  }],
  ["--lwt-background-tab-separator-color", {
    lwtProperty: "tab_background_separator",
  }],
  ["--toolbar-bgcolor", {
    lwtProperty: "toolbarColor"
  }],
  ["--toolbar-color", {
    lwtProperty: "toolbar_text"
  }],
  ["--lwt-toolbar-field-border-color", {
    lwtProperty: "toolbar_field_border"
  }],
  ["--lwt-toolbar-field-focus", {
    lwtProperty: "toolbar_field_focus"
  }],
  ["--lwt-toolbar-field-focus-color", {
    lwtProperty: "toolbar_field_text_focus"
  }],
  ["--toolbar-field-focus-border-color", {
    lwtProperty: "toolbar_field_border_focus"
  }],
  ["--urlbar-separator-color", {
    lwtProperty: "toolbar_field_separator"
  }],
  ["--tabs-border-color", {
    lwtProperty: "toolbar_top_separator",
  }],
  ["--lwt-toolbar-vertical-separator", {
    lwtProperty: "toolbar_vertical_separator"
  }],
  ["--toolbox-border-bottom-color", {
    lwtProperty: "toolbar_bottom_separator"
  }],
  ["--lwt-toolbarbutton-icon-fill", {
    lwtProperty: "icon_color"
  }],
  ["--lwt-toolbarbutton-icon-fill-attention", {
    lwtProperty: "icon_attention_color"
  }],
  ["--lwt-toolbarbutton-hover-background", {
    lwtProperty: "button_background_hover"
  }],
  ["--lwt-toolbarbutton-active-background", {
    lwtProperty: "button_background_active"
  }],
  ["--lwt-selected-tab-background-color", {
    lwtProperty: "tab_selected"
  }],
  ["--autocomplete-popup-background", {
    lwtProperty: "popup"
  }],
  ["--autocomplete-popup-color", {
    lwtProperty: "popup_text"
  }],
  ["--autocomplete-popup-border-color", {
    lwtProperty: "popup_border"
  }],
  ["--autocomplete-popup-highlight-background", {
    lwtProperty: "popup_highlight"
  }],
  ["--autocomplete-popup-highlight-color", {
    lwtProperty: "popup_highlight_text"
  }],
];