style: Update default theme
This commit is contained in:
@@ -62,6 +62,7 @@ export class ThemeSettingsComponent {
|
||||
readonly isDraftDirty = this.theme.isDraftDirty;
|
||||
readonly isFullscreen = this.modal.themeStudioFullscreen;
|
||||
readonly activeTheme = this.theme.activeTheme;
|
||||
readonly builtInPresets = this.theme.builtInPresets;
|
||||
readonly draftTheme = this.theme.draftTheme;
|
||||
readonly THEME_ANIMATION_FIELDS = THEME_ANIMATION_FIELD_HINTS;
|
||||
readonly animationKeys = this.theme.knownAnimationClasses;
|
||||
@@ -353,6 +354,14 @@ export class ThemeSettingsComponent {
|
||||
await this.themeLibrary.removeSelectedTheme();
|
||||
}
|
||||
|
||||
applyBuiltInPreset(name: string): void {
|
||||
this.theme.applyBuiltInPreset(name);
|
||||
this.activeWorkspace.set('editor');
|
||||
this.activeEditorTab.set('json');
|
||||
this.syncCssOnlyTextFromTheme();
|
||||
this.focusEditor();
|
||||
}
|
||||
|
||||
restoreDefaultTheme(): void {
|
||||
this.theme.resetToDefault('button');
|
||||
this.activeWorkspace.set('editor');
|
||||
|
||||
Reference in New Issue
Block a user