save the theme for reload

pull/571/head
LianaHus 4 years ago committed by Liana Husikyan
parent 27aa909b55
commit 9c7e7f5b9a
  1. 2
      apps/remix-ide/src/app/tabs/theme-module.js

@ -77,7 +77,7 @@ export class ThemeModule extends Plugin {
}
const next = themeName || this.active // Name
const nextTheme = this.themes[next] // Theme
if (!this.forced) this._deps.config.set('settings/theme', next)
this._deps.config.set('settings/theme', next)
document.getElementById('theme-link').setAttribute('href', nextTheme.url)
document.documentElement.style.setProperty('--theme', nextTheme.quality)
if (themeName) this.active = themeName

Loading…
Cancel
Save