Skip to content

Commit 038e077

Browse files
committed
style: remove some editor themes
移除部分主题样式
1 parent d44838f commit 038e077

File tree

4 files changed

+3
-24
lines changed

4 files changed

+3
-24
lines changed

assets/scripts/editor.js

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,6 @@ let app = new Vue({
55
aboutOutput: '',
66
output: '',
77
source: '',
8-
editorThemes: [
9-
{ label: '淡雅', value: 'xq-light' },
10-
{ label: '精致', value: 'eclipse' },
11-
{ label: '暗绿', value: 'oceanic-next' }
12-
],
138
editor: null,
149
cssEditor: null,
1510
builtinFonts: [
@@ -35,8 +30,6 @@ let app = new Vue({
3530
showBox: true,
3631
aboutDialogVisible: false
3732
};
38-
d.currentEditorTheme = d.editorThemes[0].value;
39-
d.currentCssEditorTheme = d.editorThemes[0].value;
4033
d.currentFont = d.builtinFonts[0].value;
4134
d.currentSize = d.sizeOption[1].value;
4235
d.currentColor = d.colorOption[0].value;
@@ -49,12 +42,12 @@ let app = new Vue({
4942
this.editor = CodeMirror.fromTextArea(
5043
document.getElementById('editor'),
5144
{
45+
mode: 'text/x-markdown',
46+
theme: 'xq-light',
5247
lineNumbers: false,
5348
lineWrapping: true,
5449
styleActiveLine: true,
55-
autoCloseBrackets: true,
56-
theme: this.currentEditorTheme,
57-
mode: 'text/x-markdown'
50+
autoCloseBrackets: true
5851
}
5952
);
6053
this.cssEditor = CodeMirror.fromTextArea(

index.html

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@
1515
<link rel="stylesheet" href="libs/css/index.css">
1616

1717
<link rel="stylesheet" href="libs/css/xq-light.min.css">
18-
<link rel="stylesheet" href="libs/css/eclipse.min.css">
19-
<link rel="stylesheet" href="libs/css/oceanic-next.min.css">
2018
<link rel="stylesheet" href="libs/css/code-themes/github-v2.min.css">
2119
<link rel="stylesheet" href="assets/css/app.css">
2220

@@ -58,14 +56,6 @@
5856
<i class="el-icon-refresh" size="medium" @click="reset">&nbsp;</i>
5957
</el-tooltip>
6058
<el-form size="mini" class="ctrl" :inline=true>
61-
<el-form-item label="编辑器主题">
62-
<el-select v-model="currentEditorTheme" size="mini" placeholder="选择编辑器主题" clearable
63-
@change="editorThemeChanged">
64-
<el-option v-for="editorTheme in editorThemes" :key="editorTheme.value" :label="editorTheme.label"
65-
:value="editorTheme.value">
66-
</el-option>
67-
</el-select>
68-
</el-form-item>
6959
<el-form-item label="字体">
7060
<el-select v-model="currentFont" size="mini" placeholder="选择字体" clearable @change="fontChanged">
7161
<el-option v-for="font in builtinFonts" :style="{fontFamily: font.value}" :key="font.value"

libs/css/eclipse.min.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

libs/css/oceanic-next.min.css

Lines changed: 0 additions & 2 deletions
This file was deleted.

0 commit comments

Comments
 (0)