diff --git a/mayfly_go_web/src/store/interface/index.ts b/mayfly_go_web/src/store/interface/index.ts index 30e294ff..9e1c915a 100644 --- a/mayfly_go_web/src/store/interface/index.ts +++ b/mayfly_go_web/src/store/interface/index.ts @@ -48,6 +48,10 @@ export interface ThemeConfigState { globalViceTitle: string; globalI18n: string; globalComponentSize: string; + terminalForeground: string; + terminalBackground: string; + terminalCursor: string; + terminalFontSize: number; }; } diff --git a/mayfly_go_web/src/store/modules/themeConfig.ts b/mayfly_go_web/src/store/modules/themeConfig.ts index df788c46..84d2505f 100644 --- a/mayfly_go_web/src/store/modules/themeConfig.ts +++ b/mayfly_go_web/src/store/modules/themeConfig.ts @@ -106,6 +106,15 @@ const themeConfigModule: Module = { // 默认布局,可选 1、默认 defaults 2、经典 classic 3、横向 transverse 4、分栏 columns layout: 'classic', + // ssh终端字体颜色 + terminalForeground: '#7e9192', + // ssh终端背景色 + terminalBackground: '#002833', + // ssh终端cursor色 + terminalCursor: '#268F81', + terminalFontSize: 15, + + /* 后端控制路由 ------------------------------- */ // 是否开启后端控制路由 diff --git a/mayfly_go_web/src/views/layout/navBars/breadcrumb/setings.vue b/mayfly_go_web/src/views/layout/navBars/breadcrumb/setings.vue index 982a04ac..56e4a116 100644 --- a/mayfly_go_web/src/views/layout/navBars/breadcrumb/setings.vue +++ b/mayfly_go_web/src/views/layout/navBars/breadcrumb/setings.vue @@ -2,6 +2,42 @@
+ + 终端主题 +
+
字体颜色
+
+ +
+
+
+
背景颜色
+
+ +
+
+
+
cursor颜色
+
+ +
+
+
+
字体大小
+
+ + +
+
+ 全局主题
diff --git a/mayfly_go_web/src/views/login/index.vue b/mayfly_go_web/src/views/login/index.vue index 5cec2712..9f240651 100644 --- a/mayfly_go_web/src/views/login/index.vue +++ b/mayfly_go_web/src/views/login/index.vue @@ -12,16 +12,16 @@ - + -
+