mirror of
https://github.com/naturalcrit/homebrewery.git
synced 2025-12-29 11:12:39 +00:00
Merge branch 'master' into brew_themes_user_selection
Fixes a regression for legacy brews.
This commit is contained in:
@@ -189,12 +189,14 @@ const BrewRenderer = (props)=>{
|
||||
};
|
||||
|
||||
let brewThemeRendererPath = props?.renderer ? props.renderer : 'Legacy';
|
||||
// Correct for casing vs theme.json
|
||||
if(brewThemeRendererPath == 'legacy') { brewThemeRendererPath = 'Legacy'; }
|
||||
if(props?.theme && (props?.theme[0] === '#')) {
|
||||
brewThemeRendererPath = 'Brew';
|
||||
}
|
||||
let themePath = props.theme ?? '5ePHB';
|
||||
const Themes = { ...staticThemes, ...props.userThemes };
|
||||
const baseThemePath = (themePath && themePath[0] !== '#') ? Themes[brewThemeRendererPath][themePath]?.baseTheme : 'Brew';
|
||||
const baseThemePath = (themePath && themePath[0] !== '#') ? Themes[brewThemeRendererPath][themePath].baseTheme : 'Brew';
|
||||
|
||||
// Override static theme values if a Brew theme.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user