mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-11-20 03:25:52 +01:00
rename themeName --> variantName
This commit is contained in:
parent
e8e4c33bae
commit
8ad0b8a726
@ -272,7 +272,7 @@ module.exports = function buildThemes(options) {
|
||||
* "light" options.
|
||||
*/
|
||||
const defaultVariant = dark ? defaultDarkVariant : defaultLightVariant;
|
||||
defaultVariant.themeDisplayName = variantName;
|
||||
defaultVariant.variantName = variantName;
|
||||
defaultVariant.id = themeId
|
||||
defaultVariant.cssLocation = assetMap.get(chunk.fileName).fileName;
|
||||
continue;
|
||||
@ -297,7 +297,7 @@ module.exports = function buildThemes(options) {
|
||||
* treat it like any other variant.
|
||||
*/
|
||||
const variant = defaultDarkVariant.id ? defaultDarkVariant : defaultLightVariant;
|
||||
builtAssets[`${themeName} ${variant.themeDisplayName}`] = { id: variant.id, cssLocation: variant.cssLocation };
|
||||
builtAssets[`${themeName} ${variant.variantName}`] = { id: variant.id, cssLocation: variant.cssLocation };
|
||||
}
|
||||
manifest.source = {
|
||||
"built-assets": builtAssets,
|
||||
|
@ -26,12 +26,12 @@ type DefaultVariant = {
|
||||
dark: {
|
||||
id: string;
|
||||
cssLocation: string;
|
||||
themeDisplayName: string;
|
||||
variantName: string;
|
||||
};
|
||||
light: {
|
||||
id: string;
|
||||
cssLocation: string;
|
||||
themeDisplayName: string;
|
||||
variantName: string;
|
||||
};
|
||||
}
|
||||
type ThemeInformation = NormalVariant | DefaultVariant;
|
||||
|
Loading…
Reference in New Issue
Block a user