diff --git a/spug_web/src/gStore.js b/spug_web/src/gStore.js index cc52340..4b588e8 100644 --- a/spug_web/src/gStore.js +++ b/spug_web/src/gStore.js @@ -19,7 +19,13 @@ class Store { _handleSettings = (res) => { if (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 } } diff --git a/spug_web/src/pages/ssh/themes.js b/spug_web/src/pages/ssh/themes.js index c00aa15..c79fd8f 100644 --- a/spug_web/src/pages/ssh/themes.js +++ b/spug_web/src/pages/ssh/themes.js @@ -1,6 +1,6 @@ export default { - solarized_dark: { - foreground: '#839496', background: '#2b2b2b', cursor: '#839496', + gray: { + foreground: '#A9B7C6', background: '#2b2b2b', cursor: '#A9B7C6', black: '#1b1b1b', brightBlack: '#626262',