Open eightHundreds opened 6 years ago
<UWPThemeProvider theme={getTheme({ themeName: "light", // set custom theme accent: "#0078D7", // set accent color useFluentDesign: true, // sure you want use new fluent design., desktopBackgroundImage: BackgroundImg, })} > .....
当有背景图,且needGenerateAcrylic为true(默认为true),切换黑白主题时会出错
theme.saveTheme( getTheme({ themeName: theme.themeName === "light" ? "dark" : "light", accent: theme.accent, useFluentDesign: theme.useFluentDesign, desktopBackgroundImage: theme.desktopBackgroundImage }) )
出问题的代码在这里
cacheDarkAcrylicTextures ,cacheLightAcrylicTextures 总是为undefined,这会导致Object.assign出错
Problem description
当有背景图,且needGenerateAcrylic为true(默认为true),切换黑白主题时会出错
出问题的代码在这里
cacheDarkAcrylicTextures ,cacheLightAcrylicTextures 总是为undefined,这会导致Object.assign出错