diff --git a/web/src/store/index.js b/web/src/store/index.js
index cdda01a..3a5a6d9 100644
--- a/web/src/store/index.js
+++ b/web/src/store/index.js
@@ -23,21 +23,21 @@ const useStore = defineStore({
isDark: false,
menuCollapse: localStorage.getItem('menuCollapse') === 'true',
defaultBackgroundImages: [
- 'https://wmimg.com/i/1099/2024/08/66c42ff3cd6ab.png',
- 'https://wmimg.com/i/1099/2024/08/66c42ff3e3f45.png',
- 'https://wmimg.com/i/1099/2024/08/66c42ff411ffb.png',
- 'https://wmimg.com/i/1099/2024/08/66c42ff4c5753.png',
- 'https://wmimg.com/i/1099/2024/08/66c42ff4e8b4d.jpg',
- 'https://wmimg.com/i/1099/2024/08/66c42ff51ee3a.jpg',
- 'https://wmimg.com/i/1099/2024/08/66c42ff5db377.png',
- 'https://wmimg.com/i/1099/2024/08/66c42ff536a64.png',
- 'https://wmimg.com/i/1099/2024/08/66c42ff51d8dd.png',
+ 'linear-gradient(-225deg, #CBBACC 0%, #2580B3 100%)',
+ 'linear-gradient(to top, #a18cd1 0%, #fbc2eb 100%)',
+ 'linear-gradient(to top, #6a85b6 0%, #bac8e0 100%)',
+ 'linear-gradient(to top, #7028e4 0%, #e5b2ca 100%)',
+ 'linear-gradient(to top, #9be15d 0%, #00e3ae 100%)',
+ 'linear-gradient(60deg, #abecd6 0%, #fbed96 100%)',
+ 'linear-gradient(-20deg, #2b5876 0%, #4e4376 100%)',
+ 'linear-gradient(to top, #1e3c72 0%, #1e3c72 1%, #2a5298 100%)',
+ 'linear-gradient(to right, #243949 0%, #517fa4 100%)',
],
terminalConfig: {
...{
fontSize: 16,
themeName: 'Afterglow',
- background: '',
+ background: 'linear-gradient(-225deg, #CBBACC 0%, #2580B3 100%)',
quickCopy: isHttps(),
quickPaste: isHttps(),
autoExecuteScript: false
diff --git a/web/src/views/terminal/components/info-side.vue b/web/src/views/terminal/components/info-side.vue
index ec9334b..012b8ed 100644
--- a/web/src/views/terminal/components/info-side.vue
+++ b/web/src/views/terminal/components/info-side.vue
@@ -196,22 +196,6 @@
-
-
-
-
@@ -216,3 +218,12 @@ const changeBackground = (url) => {
justify-content: center;
}
+
+
\ No newline at end of file
diff --git a/web/src/views/terminal/components/terminal-tab.vue b/web/src/views/terminal/components/terminal-tab.vue
index e7f6a92..b5e0950 100644
--- a/web/src/views/terminal/components/terminal-tab.vue
+++ b/web/src/views/terminal/components/terminal-tab.vue
@@ -62,7 +62,7 @@ const terminal = ref(null)
const terminalRef = ref(null)
const token = computed(() => $store.token)
-const theme = computed(() => themeList[$store.terminalConfig.theme])
+const theme = computed(() => themeList[$store.terminalConfig.themeName])
const fontSize = computed(() => $store.terminalConfig.fontSize)
const background = computed(() => $store.terminalConfig.background)
const hostObj = computed(() => props.hostObj)
@@ -99,10 +99,8 @@ watch(fontSize, () => {
watch(background, (newVal) => {
nextTick(() => {
if (newVal) {
- // terminal.value.options.theme.background = '#00000080'
terminal.value.options.theme = { ...theme.value, background: '#00000080' }
- terminalRef.value.style.backgroundImage = `url(${ background.value })`
- terminalRef.value.style.backgroundImage = `url(${ background.value })`
+ terminalRef.value.style.backgroundImage = background.value?.startsWith('http') ? `url(${ background.value })` : `${ background.value }`
// terminalRef.value.style.backgroundImage = `linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.15)), url(${ background.value })`
} else {
terminal.value.options.theme = theme.value
@@ -335,7 +333,6 @@ function extractLastCdPath(text) {
const onData = () => {
term.value.onData((key) => {
- console.log('key: ', key)
if (socketConnected.value === false) return
if (isLongPressCtrl.value || isLongPressAlt.value) {
const keyCode = key.toUpperCase().charCodeAt(0)