fix default theme
This commit is contained in:
@ -136,7 +136,7 @@ export class AppSettings {
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
public vimMode: boolean = false;
|
public vimMode: boolean = false;
|
||||||
public theme: string = "toposTheme";
|
public theme: string = "Dracula";
|
||||||
public font: string = "IBM Plex Mono";
|
public font: string = "IBM Plex Mono";
|
||||||
public font_size: number = 24;
|
public font_size: number = 24;
|
||||||
public universes: Universes;
|
public universes: Universes;
|
||||||
|
|||||||
@ -210,7 +210,13 @@ export class Editor {
|
|||||||
loadUniverserFromUrl(this);
|
loadUniverserFromUrl(this);
|
||||||
|
|
||||||
// Set the color scheme for the application
|
// Set the color scheme for the application
|
||||||
|
let available_themes = Object.keys(colors);
|
||||||
|
if (this.settings.theme in available_themes) {
|
||||||
this.readTheme(this.settings.theme);
|
this.readTheme(this.settings.theme);
|
||||||
|
} else {
|
||||||
|
this.settings.theme = "Dracula";
|
||||||
|
this.readTheme(this.settings.theme);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private getBuffer(type: string): any {
|
private getBuffer(type: string): any {
|
||||||
|
|||||||
Reference in New Issue
Block a user