BuiltInThemeConfig.sys.mjs (1427B)
1 /* This Source Code Form is subject to the terms of the Mozilla Public 2 * License, v. 2.0. If a copy of the MPL was not distributed with this 3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 /** 6 * A Map of themes built in to the browser. Params for the objects contained 7 * within the map: 8 * 9 * @param {string} id 10 * The unique identifier for the theme. The map's key. 11 * @param {string} version 12 * The theme add-on's semantic version, as defined in its manifest. 13 * @param {string} path 14 * Path to the add-on files. 15 * @param {boolean} inApp 16 * Optional, whether the theme uses the app's CSS, just forcing it to a 17 * particular color scheme or variant. 18 * @param {boolean} nonNative 19 * Whether this inApp theme should force the native theme, but with 20 * non-native appearance. See Document.forceNonNativeTheme and the 21 * (-moz-native-theme) media query. 22 */ 23 export const BuiltInThemeConfig = new Map([ 24 [ 25 "firefox-compact-light@mozilla.org", 26 { 27 version: "1.3.4", 28 path: "resource://builtin-themes/light/", 29 inApp: true, 30 nonNative: true, 31 }, 32 ], 33 [ 34 "firefox-compact-dark@mozilla.org", 35 { 36 version: "1.3.4", 37 path: "resource://builtin-themes/dark/", 38 inApp: true, 39 nonNative: true, 40 }, 41 ], 42 [ 43 "firefox-alpenglow@mozilla.org", 44 { 45 version: "1.5.1", 46 path: "resource://builtin-themes/alpenglow/", 47 }, 48 ], 49 ]);