Bug 1472272: Allow apps like Thunderbird to switch to the dark theme as well when macOS 10.14+ switches to dark mode. r=dao

This commit is contained in:
Stephen A Pohl 2018-06-30 10:39:34 -04:00
Родитель 2bb107325a
Коммит 6e2726ff71
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -17,7 +17,10 @@ const ADDON_TYPE_WEBEXT = "webextension-theme";
const URI_EXTENSION_STRINGS = "chrome://mozapps/locale/extensions/extensions.properties";
const DARK_THEME_ID = "firefox-compact-dark@mozilla.org";
const DARK_THEME_ID = Services.appinfo.name ?
Services.appinfo.name.toLowerCase() +
"-compact-dark@mozilla.org" :
"firefox-compact-dark@mozilla.org";
const DEFAULT_THEME_ID = "default-theme@mozilla.org";
const DEFAULT_MAX_USED_THEMES_COUNT = 30;