gecko-dev/browser/themes/BuiltInThemeConfig.sys.mjs
Emilio Cobos Álvarez 1653f0704b Bug 1971143 - Unify our light and dark themes into one manifest using dark_theme. r=dao,desktop-theme-reviewers
This doesn't change behavior (yet), but I want to do this so that we can
potentially just use this manifest.json as a built-in theme, which would
respect the color scheme.

This syncs our theme_experiment keys across both themes. zoom_controls
was not used, and the urlbarview action matches the default color from:

  https://searchfox.org/mozilla-central/rev/f30ba9df8307c48346ac1038be981595bd585603/browser/themes/shared/urlbarView.css#72

Differential Revision: https://phabricator.services.mozilla.com/D253039
2025-07-02 10:25:04 +00:00

43 lines
1.3 KiB
JavaScript

/* 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/. */
/**
* A Map of themes built in to the browser, alongwith a Map of collections those themes belong to. Params for the objects contained
* within the map:
*
* @param {string} id
* The unique identifier for the theme. The map's key.
* @param {string} version
* The theme add-on's semantic version, as defined in its manifest.
* @param {string} path
* Path to the add-on files.
* @param {string} [expiry]
* Date in YYYY-MM-DD format. Optional. If defined, the themes in the collection can no longer be
* used after this date, unless the user has permission to retain it.
* @param {string} [collection]
* The collection id that the theme is a part of. Optional.
*/
export const BuiltInThemeConfig = new Map([
[
"firefox-compact-light@mozilla.org",
{
version: "1.3.3",
path: "resource://builtin-themes/light/",
},
],
[
"firefox-compact-dark@mozilla.org",
{
version: "1.3.3",
path: "resource://builtin-themes/dark/",
},
],
[
"firefox-alpenglow@mozilla.org",
{
version: "1.5",
path: "resource://builtin-themes/alpenglow/",
},
],
]);