|
|
@ -26,11 +26,11 @@ class Editor extends Plugin { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
const translateTheme = (theme) => this._themes[theme.name === 'Dark' ? 'remixDark' : theme.quality] |
|
|
|
const translateTheme = (theme) => this._themes[theme.name === 'Dark' ? 'remixDark' : theme.quality] |
|
|
|
this.on('themeModule', 'themeChanged', (theme) => { |
|
|
|
this.on('theme', 'themeChanged', (theme) => { |
|
|
|
this.currentTheme = translateTheme(theme) |
|
|
|
this.currentTheme = translateTheme(theme) |
|
|
|
this.renderComponent() |
|
|
|
this.renderComponent() |
|
|
|
}) |
|
|
|
}) |
|
|
|
this.call('themeModule', 'currentTheme', (theme) => this.currentTheme = translateTheme(theme)) |
|
|
|
this.call('theme', 'currentTheme', (theme) => this.currentTheme = translateTheme(theme)) |
|
|
|
|
|
|
|
|
|
|
|
// Init
|
|
|
|
// Init
|
|
|
|
this.event = new EventManager() |
|
|
|
this.event = new EventManager() |
|
|
|