mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-27 00:56:01 +00:00
changed default editor dark theme
This commit is contained in:
@@ -18,9 +18,11 @@
|
|||||||
import 'ace-builds/src-noconflict/theme-github';
|
import 'ace-builds/src-noconflict/theme-github';
|
||||||
// import 'ace-builds/src-noconflict/theme-sqlserver';
|
// import 'ace-builds/src-noconflict/theme-sqlserver';
|
||||||
|
|
||||||
import 'ace-builds/src-noconflict/theme-twilight';
|
// import 'ace-builds/src-noconflict/theme-twilight';
|
||||||
// import 'ace-builds/src-noconflict/theme-monokai';
|
// import 'ace-builds/src-noconflict/theme-monokai';
|
||||||
|
// import 'ace-builds/src-noconflict/theme-chaos';
|
||||||
|
import 'ace-builds/src-noconflict/theme-merbivore';
|
||||||
|
|
||||||
import { currentDropDownMenu, currentThemeDefinition } from '../stores';
|
import { currentDropDownMenu, currentThemeDefinition } from '../stores';
|
||||||
import _ from 'lodash';
|
import _ from 'lodash';
|
||||||
import { handleCommandKeyDown } from '../commands/CommandListener.svelte';
|
import { handleCommandKeyDown } from '../commands/CommandListener.svelte';
|
||||||
@@ -73,7 +75,7 @@
|
|||||||
showPrintMargin: false,
|
showPrintMargin: false,
|
||||||
};
|
};
|
||||||
|
|
||||||
$: theme = $currentThemeDefinition?.themeType == 'dark' ? 'twilight' : 'github';
|
$: theme = $currentThemeDefinition?.themeType == 'dark' ? 'merbivore' : 'github';
|
||||||
|
|
||||||
export function getEditor(): ace.Editor {
|
export function getEditor(): ace.Editor {
|
||||||
return editor;
|
return editor;
|
||||||
|
|||||||
Reference in New Issue
Block a user