mirror of https://github.com/openspug/spug
U 更新终端主题配色
parent
981bda96d7
commit
76a11f0ae1
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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',
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue