1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Fixes the theme of code block by codemirror

This commit is contained in:
asmsuechan
2017-01-07 22:48:37 +09:00
parent e4212e796a
commit ee6d41859f
2 changed files with 2 additions and 2 deletions

View File

@@ -186,7 +186,7 @@ export default class MarkdownPreview extends React.Component {
setCodeTheme (theme) { setCodeTheme (theme) {
theme = consts.THEMES.some((_theme) => _theme === theme) theme = consts.THEMES.some((_theme) => _theme === theme)
? theme ? theme
: 'default' : 'elegant'
this.getWindow().document.getElementById('codeTheme').href = `${appPath}/node_modules/codemirror/theme/${theme}.css` this.getWindow().document.getElementById('codeTheme').href = `${appPath}/node_modules/codemirror/theme/${theme}.css`
} }

View File

@@ -34,7 +34,7 @@ export const DEFAULT_CONFIG = {
preview: { preview: {
fontSize: '14', fontSize: '14',
fontFamily: 'Lato', fontFamily: 'Lato',
codeBlockTheme: 'xcode', codeBlockTheme: 'elegant',
lineNumber: true lineNumber: true
} }
} }