This commit is contained in:
syuilo 2020-03-22 10:39:12 +09:00
parent c6c62f956b
commit e2c0ee66e4
7 changed files with 318 additions and 10 deletions

View file

@ -44,7 +44,7 @@ export function applyTheme(theme: Theme, persist = true) {
const _theme = JSON.parse(JSON.stringify(theme));
if (_theme.base) {
const base = [lightTheme, darkTheme].find(x => x.id == _theme.base);
const base = [lightTheme, darkTheme].find(x => x.id === _theme.base);
_theme.props = Object.assign({}, base.props, _theme.props);
}