U 更新终端主题配色

pull/517/head
vapao 2022-07-04 01:07:50 +08:00
parent 981bda96d7
commit 76a11f0ae1
2 changed files with 9 additions and 3 deletions

View File

@ -19,7 +19,13 @@ class Store {
_handleSettings = (res) => { _handleSettings = (res) => {
if (res.terminal) { if (res.terminal) {
const terminal = JSON.parse(res.terminal) const terminal = JSON.parse(res.terminal)
terminal.styles = themes[terminal.theme] const styles = themes[terminal.theme]
if (styles) {
terminal.styles = styles
} else {
terminal.styles = themes['dark']
terminal.theme = 'dark'
}
this.terminal = terminal this.terminal = terminal
} }
} }

View File

@ -1,6 +1,6 @@
export default { export default {
solarized_dark: { gray: {
foreground: '#839496', background: '#2b2b2b', cursor: '#839496', foreground: '#A9B7C6', background: '#2b2b2b', cursor: '#A9B7C6',
black: '#1b1b1b', brightBlack: '#626262', black: '#1b1b1b', brightBlack: '#626262',