A web terminal优化配色

pull/467/head
vapao 2022-04-01 10:25:47 +08:00
parent 8eec8532d4
commit e45104f12f
2 changed files with 4 additions and 3 deletions

View File

@ -19,6 +19,7 @@ function WebSSH(props) {
useEffect(() => {
term.loadAddon(fitPlugin);
term.setOption('fontFamily', 'Source Code Pro, Courier New, Courier, Monaco, monospace, PingFang SC, Microsoft YaHei')
term.setOption('theme', {background: '#2b2b2b', foreground: '#A9B7C6'})
term.open(container.current);
term.write('WebSocket connecting ... ');
const protocol = window.location.protocol === 'https:' ? 'wss:' : 'ws:';

View File

@ -73,15 +73,15 @@
.terminal {
flex: 1;
display: flex;
background-color: #000;
background-color: #2b2b2b;
padding-left: 5px;
height: calc(100vh - 42px);
}
.fig {
flex: 1;
background-color: #000;
color: #fff;
background-color: #2b2b2b;
color: #A9B7C6;
padding-top: 200px;
margin-bottom: 0;
text-align: center;