refactor: Simplify UI styles and remove unused theme management

- Removed theme initialization and management from the UI store.
- Cleaned up CSS styles across multiple components, replacing CSS variables with fixed color values for consistency.
- Updated background colors and text colors to enhance UI clarity and responsiveness.
- Streamlined component styles to improve maintainability and readability.
This commit is contained in:
wizardchen
2025-11-06 02:47:01 +08:00
parent 7a64371603
commit 602e8a3b88
23 changed files with 329 additions and 508 deletions
+1 -108
View File
@@ -1,13 +1,4 @@
<script setup lang="ts"> <script setup lang="ts">
import { onMounted } from 'vue'
import { useUIStore } from '@/stores/ui'
const uiStore = useUIStore()
// 在应用启动时初始化主题
onMounted(() => {
uiStore.initTheme()
})
</script> </script>
<template> <template>
<div id="app"> <div id="app">
@@ -27,104 +18,6 @@ html,
Microsoft YaHei, SimSun, sans-serif; Microsoft YaHei, SimSun, sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
background: var(--td-bg-color-page); background: #f8f9fa;
}
/* 暗色模式下的TDesign组件样式增强 */
:root[theme-mode="dark"] {
/* 表格表头 */
.t-table thead th {
color: var(--td-text-color-primary) !important;
background-color: var(--td-bg-color-container) !important;
font-weight: 600 !important;
}
/* 表格内容 */
.t-table tbody td {
color: var(--td-text-color-primary) !important;
background-color: var(--td-bg-color-container) !important;
}
/* 表格行hover效果 */
.t-table tbody tr:hover td {
background-color: var(--td-bg-color-container-hover) !important;
}
/* 表格边框 */
.t-table,
.t-table th,
.t-table td {
border-color: var(--td-component-border) !important;
}
/* 滑块标记文字 */
.t-slider__mark-text {
color: var(--td-text-color-primary) !important;
font-weight: 500 !important;
}
/* 滑块刻度 */
.t-slider__stops .t-slider__stop {
background-color: var(--td-text-color-placeholder) !important;
}
/* 对话框 */
.t-dialog {
background: var(--td-bg-color-container) !important;
color: var(--td-text-color-primary) !important;
}
.t-dialog__header {
color: var(--td-text-color-primary) !important;
border-bottom-color: var(--td-component-border) !important;
}
.t-dialog__body {
color: var(--td-text-color-primary) !important;
}
/* 表单标签 */
.t-form__label {
color: var(--td-text-color-primary) !important;
font-weight: 500 !important;
}
/* 输入框 */
.t-input,
.t-textarea {
background-color: var(--td-bg-color-component) !important;
color: var(--td-text-color-primary) !important;
border-color: var(--td-component-border) !important;
}
.t-input::placeholder,
.t-textarea::placeholder {
color: var(--td-text-color-placeholder) !important;
}
/* 下拉选择器 */
.t-select-input {
background-color: var(--td-bg-color-component) !important;
color: var(--td-text-color-primary) !important;
border-color: var(--td-component-border) !important;
}
.t-select__placeholder {
color: var(--td-text-color-placeholder) !important;
}
/* 开关组件 */
.t-switch__label {
color: var(--td-text-color-primary) !important;
}
/* 标签页 */
.t-tabs__nav-item {
color: var(--td-text-color-secondary) !important;
}
.t-tabs__nav-item.t-is-active {
color: var(--td-brand-color) !important;
}
} }
</style> </style>
+27 -27
View File
@@ -219,24 +219,24 @@ const getImgSrc = (url: string) => {
max-height: 250px !important; max-height: 250px !important;
min-height: 112px !important; min-height: 112px !important;
resize: none; resize: none;
color: var(--td-text-color-primary); color: #000000e6;
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
line-height: 24px; line-height: 24px;
font-family: "PingFang SC"; font-family: "PingFang SC";
padding: 16px 12px 52px 16px; /* 增加底部padding为控制栏腾出空间 */ padding: 16px 12px 52px 16px; /* 增加底部padding为控制栏腾出空间 */
border-radius: 12px; border-radius: 12px;
border: 1px solid var(--td-component-border); border: 1px solid #E7E7E7;
box-sizing: border-box; box-sizing: border-box;
background: var(--td-bg-color-container); background: #FFF;
box-shadow: var(--td-shadow-1); box-shadow: 0 6px 6px 0 #0000000a, 0 12px 12px -1px #00000014;
&:focus { &:focus {
border: 1px solid var(--td-brand-color); border: 1px solid #07C05F;
} }
&::placeholder { &::placeholder {
color: var(--td-text-color-placeholder); color: #00000066;
font-family: "PingFang SC"; font-family: "PingFang SC";
font-size: 16px; font-size: 16px;
font-weight: 400; font-weight: 400;
@@ -271,14 +271,14 @@ const getImgSrc = (url: string) => {
gap: 4px; gap: 4px;
padding: 6px 10px; padding: 6px 10px;
border-radius: 6px; border-radius: 6px;
background: var(--td-bg-color-component); background: #f5f5f5;
cursor: pointer; cursor: pointer;
transition: all 0.2s ease; transition: all 0.2s ease;
user-select: none; user-select: none;
flex-shrink: 0; flex-shrink: 0;
&:hover { &:hover {
background: var(--td-bg-color-component-hover); background: #e6e6e6;
transform: scale(1.02); transform: scale(1.02);
} }
@@ -291,7 +291,7 @@ const getImgSrc = (url: string) => {
cursor: not-allowed; cursor: not-allowed;
&:hover { &:hover {
background: var(--td-bg-color-component); background: #f5f5f5;
transform: none; transform: none;
} }
} }
@@ -303,10 +303,10 @@ const getImgSrc = (url: string) => {
padding: 0; padding: 0;
&.active { &.active {
background: var(--td-brand-color-light); background: rgba(7, 192, 95, 0.1);
&:hover { &:hover {
background: var(--td-brand-color-focus); background: rgba(7, 192, 95, 0.15);
} }
} }
} }
@@ -323,24 +323,24 @@ const getImgSrc = (url: string) => {
min-width: auto; min-width: auto;
&.active { &.active {
background: var(--td-brand-color-light); background: rgba(7, 192, 95, 0.1);
color: var(--td-brand-color); color: #07C05F;
&:hover { &:hover {
background: var(--td-brand-color-focus); background: rgba(7, 192, 95, 0.15);
} }
} }
} }
.kb-btn-text { .kb-btn-text {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-secondary); color: #666;
font-weight: 500; font-weight: 500;
white-space: nowrap; white-space: nowrap;
} }
.kb-btn.active .kb-btn-text { .kb-btn.active .kb-btn-text {
color: var(--td-brand-color); color: #07C05F;
} }
.dropdown-arrow { .dropdown-arrow {
@@ -372,16 +372,16 @@ const getImgSrc = (url: string) => {
align-items: center; align-items: center;
gap: 4px; gap: 4px;
padding: 4px 8px; padding: 4px 8px;
background: var(--td-brand-color-light); background: rgba(7, 192, 95, 0.1);
border: 1px solid var(--td-brand-color-3); border: 1px solid rgba(7, 192, 95, 0.3);
border-radius: 4px; border-radius: 4px;
font-size: 12px; font-size: 12px;
color: var(--td-brand-color); color: #07C05F;
white-space: nowrap; white-space: nowrap;
transition: all 0.15s ease; transition: all 0.15s ease;
&:hover { &:hover {
background: var(--td-brand-color-focus); background: rgba(7, 192, 95, 0.15);
} }
} }
@@ -404,12 +404,12 @@ const getImgSrc = (url: string) => {
} }
.more-tag { .more-tag {
background: var(--td-bg-color-component); background: rgba(0, 0, 0, 0.05);
border-color: var(--td-component-border); border-color: rgba(0, 0, 0, 0.1);
color: var(--td-text-color-secondary); color: #666;
&:hover { &:hover {
background: var(--td-bg-color-component-hover); background: rgba(0, 0, 0, 0.08);
} }
} }
@@ -417,15 +417,15 @@ const getImgSrc = (url: string) => {
width: 28px; width: 28px;
height: 28px; height: 28px;
padding: 0; padding: 0;
background-color: var(--td-brand-color); background-color: #07C05F;
&:hover:not(.disabled) { &:hover:not(.disabled) {
background-color: var(--td-brand-color-hover); background-color: #00a651;
transform: scale(1.05); transform: scale(1.05);
} }
&.disabled { &.disabled {
background-color: var(--td-brand-color-disabled); background-color: #b5eccf;
} }
img { img {
+16 -16
View File
@@ -161,7 +161,7 @@ onUnmounted(() => {
background: transparent; background: transparent;
&:hover { &:hover {
background: var(--td-bg-color-component-hover); background: #f5f7fa;
} }
&:active { &:active {
@@ -175,7 +175,7 @@ onUnmounted(() => {
border-radius: 50%; border-radius: 50%;
overflow: hidden; overflow: hidden;
flex-shrink: 0; flex-shrink: 0;
background: linear-gradient(135deg, var(--td-brand-color) 0%, var(--td-brand-color-active) 100%); background: linear-gradient(135deg, #07C05F 0%, #05A34E 100%);
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -187,7 +187,7 @@ onUnmounted(() => {
} }
.avatar-placeholder { .avatar-placeholder {
color: var(--td-text-color-anti); color: #ffffff;
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
} }
@@ -201,7 +201,7 @@ onUnmounted(() => {
.user-name { .user-name {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -209,7 +209,7 @@ onUnmounted(() => {
.user-email { .user-email {
font-size: 12px; font-size: 12px;
color: var(--td-text-color-secondary); color: #666666;
white-space: nowrap; white-space: nowrap;
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
@@ -218,7 +218,7 @@ onUnmounted(() => {
.dropdown-icon { .dropdown-icon {
font-size: 16px; font-size: 16px;
color: var(--td-text-color-secondary); color: #666666;
flex-shrink: 0; flex-shrink: 0;
transition: transform 0.2s; transition: transform 0.2s;
} }
@@ -229,10 +229,10 @@ onUnmounted(() => {
left: 8px; left: 8px;
right: 8px; right: 8px;
margin-bottom: 8px; margin-bottom: 8px;
background: var(--td-bg-color-container); background: #ffffff;
border-radius: 8px; border-radius: 8px;
box-shadow: var(--td-shadow-2); box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
border: 1px solid var(--td-component-border); border: 1px solid #e5e7eb;
overflow: hidden; overflow: hidden;
z-index: 1000; z-index: 1000;
} }
@@ -245,33 +245,33 @@ onUnmounted(() => {
cursor: pointer; cursor: pointer;
transition: all 0.2s; transition: all 0.2s;
font-size: 14px; font-size: 14px;
color: var(--td-text-color-primary); color: #333333;
&:hover { &:hover {
background: var(--td-bg-color-component-hover); background: #f5f7fa;
} }
&.danger { &.danger {
color: var(--td-error-color); color: #e34d59;
&:hover { &:hover {
background: var(--td-error-color-light); background: #fef0f0;
} }
.menu-icon { .menu-icon {
color: var(--td-error-color); color: #e34d59;
} }
} }
.menu-icon { .menu-icon {
font-size: 16px; font-size: 16px;
color: var(--td-text-color-secondary); color: #666666;
} }
} }
.menu-divider { .menu-divider {
height: 1px; height: 1px;
background: var(--td-component-border); background: #e5e7eb;
margin: 4px 0; margin: 4px 0;
} }
+52 -61
View File
@@ -554,14 +554,14 @@ watch(() => route.params.kbId, () => {
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.del_submenu { .del_submenu {
color: var(--td-error-color); color: #fa5151;
cursor: pointer; cursor: pointer;
} }
.aside_box { .aside_box {
min-width: 260px; min-width: 260px;
padding: 8px; padding: 8px;
background: var(--td-bg-color-container); background: #fff;
box-sizing: border-box; box-sizing: border-box;
height: 100vh; height: 100vh;
overflow: hidden; overflow: hidden;
@@ -586,18 +586,9 @@ watch(() => route.params.kbId, () => {
margin-right: 7.25px; margin-right: 7.25px;
} }
/* 暗色模式下的Logo滤镜 */
:root[theme-mode="dark"] .logo {
filter: brightness(0) invert(1);
}
:root[theme-mode="dark"] .logo_img {
filter: brightness(0) invert(1);
}
.logo_txt { .logo_txt {
transform: rotate(0.049deg); transform: rotate(0.049deg);
color: var(--td-text-color-primary); color: #000000;
font-family: "TencentSans"; font-family: "TencentSans";
font-size: 24.12px; font-size: 24.12px;
font-style: normal; font-style: normal;
@@ -639,28 +630,28 @@ watch(() => route.params.kbId, () => {
} }
.upload-file-wrap:hover { .upload-file-wrap:hover {
background-color: var(--td-brand-color-light); background-color: #dbede4;
color: var(--td-brand-color); color: #07C05F;
} }
.upload-file-icon { .upload-file-icon {
width: 20px; width: 20px;
height: 20px; height: 20px;
color: var(--td-text-color-secondary); color: rgba(0, 0, 0, 0.6);
} }
.active-upload { .active-upload {
color: var(--td-brand-color); color: #07C05F;
} }
.menu_item_active { .menu_item_active {
border-radius: 4px; border-radius: 4px;
background: var(--td-brand-color-light) !important; background: #07c05f1a !important;
.menu_icon, .menu_icon,
.menu_title { .menu_title {
color: var(--td-brand-color) !important; color: #07c05f !important;
} }
} }
@@ -668,7 +659,7 @@ watch(() => route.params.kbId, () => {
.menu_icon, .menu_icon,
.menu_title { .menu_title {
color: var(--td-text-color-primary); color: #000000e6;
} }
} }
@@ -695,12 +686,12 @@ watch(() => route.params.kbId, () => {
&:hover { &:hover {
border-radius: 4px; border-radius: 4px;
background: var(--td-bg-color-container-hover); background: #30323605;
color: var(--td-text-color-secondary); color: #00000099;
.menu_icon, .menu_icon,
.menu_title { .menu_title {
color: var(--td-text-color-secondary); color: #00000099;
} }
} }
} }
@@ -708,7 +699,7 @@ watch(() => route.params.kbId, () => {
.menu_icon { .menu_icon {
display: flex; display: flex;
margin-right: 10px; margin-right: 10px;
color: var(--td-text-color-secondary); color: #00000099;
.icon { .icon {
width: 20px; width: 20px;
@@ -719,7 +710,7 @@ watch(() => route.params.kbId, () => {
} }
.menu_title { .menu_title {
color: var(--td-text-color-secondary); color: #00000099;
text-overflow: ellipsis; text-overflow: ellipsis;
font-family: "PingFang SC"; font-family: "PingFang SC";
font-size: 14px; font-size: 14px;
@@ -754,7 +745,7 @@ watch(() => route.params.kbId, () => {
cursor: pointer; cursor: pointer;
display: flex; display: flex;
align-items: center; align-items: center;
color: var(--td-text-color-secondary); color: #00000099;
font-weight: 400; font-weight: 400;
line-height: 22px; line-height: 22px;
height: 36px; height: 36px;
@@ -775,14 +766,14 @@ watch(() => route.params.kbId, () => {
.menu-more { .menu-more {
display: inline-block; display: inline-block;
font-weight: bold; font-weight: bold;
color: var(--td-brand-color); color: #07C05F;
} }
.dot { .dot {
width: 4px; width: 4px;
height: 4px; height: 4px;
border-radius: 50%; border-radius: 50%;
background: var(--td-brand-color); background: #07C05F;
} }
.sub_title { .sub_title {
@@ -790,12 +781,12 @@ watch(() => route.params.kbId, () => {
} }
&:hover { &:hover {
background: var(--td-bg-color-container-hover); background: #30323605;
color: var(--td-text-color-secondary); color: #00000099;
border-radius: 3px; border-radius: 3px;
.menu-more { .menu-more {
color: var(--td-text-color-secondary); color: #00000099;
} }
.submenu_title { .submenu_title {
@@ -806,12 +797,12 @@ watch(() => route.params.kbId, () => {
} }
.submenu_item_active { .submenu_item_active {
background: var(--td-brand-color-light) !important; background: #07c05f1a !important;
color: var(--td-brand-color) !important; color: #07c05f !important;
border-radius: 3px; border-radius: 3px;
.menu-more { .menu-more {
color: var(--td-brand-color) !important; color: #07c05f !important;
} }
} }
} }
@@ -819,7 +810,7 @@ watch(() => route.params.kbId, () => {
/* 知识库下拉菜单样式 */ /* 知识库下拉菜单样式 */
.kb-dropdown-icon { .kb-dropdown-icon {
margin-left: auto; margin-left: auto;
color: var(--td-text-color-secondary); color: #666;
transition: transform 0.3s ease, color 0.2s ease; transition: transform 0.3s ease, color 0.2s ease;
cursor: pointer; cursor: pointer;
display: flex; display: flex;
@@ -833,15 +824,15 @@ watch(() => route.params.kbId, () => {
} }
&:hover { &:hover {
color: var(--td-brand-color); color: #07c05f;
} }
&.active { &.active {
color: var(--td-brand-color); color: #07c05f;
} }
&.active:hover { &.active:hover {
color: var(--td-brand-color-hover); color: #05a04f;
} }
svg { svg {
@@ -856,10 +847,10 @@ watch(() => route.params.kbId, () => {
top: 100%; top: 100%;
left: 0; left: 0;
right: 0; right: 0;
background: var(--td-bg-color-container); background: #fff;
border: 1px solid var(--td-component-border); border: 1px solid #e5e7eb;
border-radius: 6px; border-radius: 6px;
box-shadow: var(--td-shadow-2); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
z-index: 1000; z-index: 1000;
max-height: 200px; max-height: 200px;
overflow-y: auto; overflow-y: auto;
@@ -870,15 +861,15 @@ watch(() => route.params.kbId, () => {
cursor: pointer; cursor: pointer;
transition: background-color 0.2s ease; transition: background-color 0.2s ease;
font-size: 14px; font-size: 14px;
color: var(--td-text-color-primary); color: #333;
&:hover { &:hover {
background-color: var(--td-bg-color-container-hover); background-color: #f5f5f5;
} }
&.active { &.active {
background-color: var(--td-brand-color-light); background-color: #07c05f1a;
color: var(--td-brand-color); color: #07c05f;
font-weight: 500; font-weight: 500;
} }
@@ -904,15 +895,15 @@ watch(() => route.params.kbId, () => {
</style> </style>
<style lang="less"> <style lang="less">
.upload-popup { .upload-popup {
background-color: var(--td-gray-color-13); background-color: rgba(0, 0, 0, 0.9);
color: var(--td-text-color-anti); color: #FFFFFF;
border-color: var(--td-gray-color-13) !important; border-color: rgba(0, 0, 0, 0.9) !important;
box-shadow: none; box-shadow: none;
margin-bottom: 10px !important; margin-bottom: 10px !important;
.t-popup__arrow::before { .t-popup__arrow::before {
border-color: var(--td-gray-color-13) !important; border-color: rgba(0, 0, 0, 0.9) !important;
background-color: var(--td-gray-color-13) !important; background-color: rgba(0, 0, 0, 0.9) !important;
box-shadow: none !important; box-shadow: none !important;
} }
} }
@@ -934,22 +925,22 @@ watch(() => route.params.kbId, () => {
// 退出登录确认框样式 // 退出登录确认框样式
:deep(.t-popconfirm) { :deep(.t-popconfirm) {
.t-popconfirm__content { .t-popconfirm__content {
background: var(--td-bg-color-container); background: #fff;
border: 1px solid var(--td-component-border); border: 1px solid #e7e7e7;
border-radius: 6px; border-radius: 6px;
box-shadow: var(--td-shadow-2); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
padding: 12px 16px; padding: 12px 16px;
font-size: 14px; font-size: 14px;
color: var(--td-text-color-primary); color: #333;
max-width: 200px; max-width: 200px;
} }
.t-popconfirm__arrow { .t-popconfirm__arrow {
border-bottom-color: var(--td-component-border); border-bottom-color: #e7e7e7;
} }
.t-popconfirm__arrow::after { .t-popconfirm__arrow::after {
border-bottom-color: var(--td-bg-color-container); border-bottom-color: #fff;
} }
.t-popconfirm__buttons { .t-popconfirm__buttons {
@@ -960,18 +951,18 @@ watch(() => route.params.kbId, () => {
} }
.t-button--variant-outline { .t-button--variant-outline {
border-color: var(--td-component-border); border-color: #d9d9d9;
color: var(--td-text-color-secondary); color: #666;
} }
.t-button--theme-danger { .t-button--theme-danger {
background-color: var(--td-error-color); background-color: #ff4d4f;
border-color: var(--td-error-color); border-color: #ff4d4f;
} }
.t-button--theme-danger:hover { .t-button--theme-danger:hover {
background-color: var(--td-error-color-hover); background-color: #ff7875;
border-color: var(--td-error-color-hover); border-color: #ff7875;
} }
} }
</style> </style>
+1 -55
View File
@@ -1,15 +1,12 @@
import { defineStore } from 'pinia' import { defineStore } from 'pinia'
type Theme = 'light' | 'dark'
export const useUIStore = defineStore('ui', { export const useUIStore = defineStore('ui', {
state: () => ({ state: () => ({
showSettingsModal: false, showSettingsModal: false,
showKBSettingsModal: false, showKBSettingsModal: false,
currentKBId: null as string | null, currentKBId: null as string | null,
settingsInitialSection: null as string | null, settingsInitialSection: null as string | null,
settingsInitialSubSection: null as string | null, settingsInitialSubSection: null as string | null
theme: 'light' as Theme
}), }),
actions: { actions: {
@@ -37,57 +34,6 @@ export const useUIStore = defineStore('ui', {
closeKBSettings() { closeKBSettings() {
this.showKBSettingsModal = false this.showKBSettingsModal = false
this.currentKBId = null this.currentKBId = null
},
// 初始化主题(从localStorage加载)
initTheme() {
const savedSettings = localStorage.getItem('WeKnora_general_settings')
if (savedSettings) {
try {
const parsed = JSON.parse(savedSettings)
this.theme = parsed.theme || 'light'
} catch (e) {
console.error('加载主题设置失败:', e)
this.theme = 'light'
}
}
this.applyTheme()
},
// 设置主题
setTheme(theme: Theme) {
this.theme = theme
this.applyTheme()
this.saveThemeToStorage()
},
// 切换主题
toggleTheme() {
this.theme = this.theme === 'light' ? 'dark' : 'light'
this.applyTheme()
this.saveThemeToStorage()
},
// 应用主题到DOM
applyTheme() {
document.documentElement.setAttribute('theme-mode', this.theme)
},
// 保存主题到localStorage
saveThemeToStorage() {
const savedSettings = localStorage.getItem('WeKnora_general_settings')
let settings = { language: 'zh-CN', theme: this.theme }
if (savedSettings) {
try {
const parsed = JSON.parse(savedSettings)
settings = { ...parsed, theme: this.theme }
} catch (e) {
console.error('解析现有设置失败:', e)
}
}
localStorage.setItem('WeKnora_general_settings', JSON.stringify(settings))
} }
} }
}) })
@@ -480,7 +480,7 @@ const formatJSON = (obj: any): string => {
.collapse-text { .collapse-text {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-primary); color: #333333;
font-weight: 500; font-weight: 500;
letter-spacing: -0.01em; letter-spacing: -0.01em;
} }
@@ -495,15 +495,15 @@ const formatJSON = (obj: any): string => {
animation: fadeInUp 0.3s ease-out; animation: fadeInUp 0.3s ease-out;
.thinking-phase { .thinking-phase {
background: var(--td-bg-color-container); background: #ffffff;
border-radius: 8px; border-radius: 8px;
padding: 1px 14px; padding: 1px 14px;
border-left: 3px solid var(--td-component-border); border-left: 3px solid #d1d5db;
box-shadow: var(--td-shadow-1); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
&.thinking-active { &.thinking-active {
border-left-color: var(--td-brand-color); border-left-color: #07c05f;
box-shadow: 0 2px 4px rgba(7, 192, 95, 0.08); box-shadow: 0 2px 4px rgba(7, 192, 95, 0.08);
animation: pulseBorder 2s ease-in-out infinite; animation: pulseBorder 2s ease-in-out infinite;
} }
@@ -511,7 +511,7 @@ const formatJSON = (obj: any): string => {
.thinking-content { .thinking-content {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-primary); color: #333333;
line-height: 1.6; line-height: 1.6;
&.markdown-content { &.markdown-content {
@@ -551,16 +551,16 @@ const formatJSON = (obj: any): string => {
} }
:deep(blockquote) { :deep(blockquote) {
border-left: 3px solid var(--td-brand-color); border-left: 3px solid #07c05f;
padding-left: 12px; padding-left: 12px;
margin: 8px 0; margin: 8px 0;
color: var(--td-text-color-secondary); color: #666;
} }
:deep(h1), :deep(h2), :deep(h3), :deep(h4), :deep(h5), :deep(h6) { :deep(h1), :deep(h2), :deep(h3), :deep(h4), :deep(h5), :deep(h6) {
margin: 12px 0 8px 0; margin: 12px 0 8px 0;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333;
} }
:deep(a) { :deep(a) {
@@ -623,9 +623,9 @@ const formatJSON = (obj: any): string => {
.tool-summary { .tool-summary {
padding: 8px 14px; padding: 8px 14px;
font-size: 13px; font-size: 13px;
color: var(--td-text-color-primary); color: #333333;
background: var(--td-bg-color-container); background: #ffffff;
border-top: 1px solid var(--td-component-border); border-top: 1px solid #f0f0f0;
line-height: 1.6; line-height: 1.6;
font-weight: 500; font-weight: 500;
animation: slideIn 0.25s ease-out; animation: slideIn 0.25s ease-out;
@@ -633,11 +633,11 @@ const formatJSON = (obj: any): string => {
.tool-summary-markdown { .tool-summary-markdown {
font-weight: 400; font-weight: 400;
line-height: 1.6; line-height: 1.6;
color: var(--td-text-color-primary); color: #333333;
:deep(p) { :deep(p) {
margin: 4px 0; margin: 4px 0;
color: var(--td-text-color-primary); color: #333333;
} }
:deep(ul), :deep(ol) { :deep(ul), :deep(ol) {
@@ -646,17 +646,17 @@ const formatJSON = (obj: any): string => {
} }
:deep(code) { :deep(code) {
background: var(--td-bg-color-component); background: #f5f5f5;
padding: 2px 6px; padding: 2px 6px;
border-radius: 4px; border-radius: 4px;
font-size: 12px; font-size: 12px;
color: var(--td-brand-color); color: #07c05f;
font-weight: 500; font-weight: 500;
} }
:deep(strong) { :deep(strong) {
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
} }
} }
} }
@@ -708,8 +708,8 @@ const formatJSON = (obj: any): string => {
} }
&.pending { &.pending {
color: var(--td-text-color-secondary); color: #666666;
background: var(--td-bg-color-component); background: rgba(102, 102, 102, 0.1);
animation: pulse 1.5s ease-in-out infinite; animation: pulse 1.5s ease-in-out infinite;
} }
} }
@@ -782,12 +782,12 @@ const formatJSON = (obj: any): string => {
.action-name { .action-name {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333;
} }
.expand-icon { .expand-icon {
font-size: 12px; font-size: 12px;
color: var(--td-brand-color); color: #07c05f;
transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease; transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.2s ease;
font-weight: 600; font-weight: 600;
opacity: 0.8; opacity: 0.8;
@@ -804,8 +804,8 @@ const formatJSON = (obj: any): string => {
.action-details { .action-details {
padding: 0 12px 12px 12px; padding: 0 12px 12px 12px;
border-top: 1px solid var(--td-component-border); border-top: 1px solid #e5e7eb;
background: var(--td-bg-color-container); background: #fff;
} }
.detail-row { .detail-row {
@@ -818,15 +818,15 @@ const formatJSON = (obj: any): string => {
.detail-label { .detail-label {
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-secondary); color: #666;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.5px; letter-spacing: 0.5px;
} }
.detail-value { .detail-value {
font-size: 13px; font-size: 13px;
color: var(--td-brand-color); color: #07c05f;
background: var(--td-brand-color-light); background: rgba(7, 192, 95, 0.05);
padding: 2px 6px; padding: 2px 6px;
border-radius: 3px; border-radius: 3px;
font-family: 'Monaco', 'Courier New', monospace; font-family: 'Monaco', 'Courier New', monospace;
@@ -835,25 +835,25 @@ const formatJSON = (obj: any): string => {
.detail-code { .detail-code {
font-size: 12px; font-size: 12px;
background: var(--td-bg-color-component); background: #f5f5f5;
padding: 8px; padding: 8px;
border-radius: 4px; border-radius: 4px;
font-family: 'Monaco', 'Courier New', monospace; font-family: 'Monaco', 'Courier New', monospace;
color: var(--td-text-color-primary); color: #333;
margin: 0; margin: 0;
overflow-x: auto; overflow-x: auto;
border: 1px solid var(--td-component-border); border: 1px solid #e5e7eb;
} }
.detail-output { .detail-output {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-primary); color: #333;
background: var(--td-bg-color-component); background: #f5f5f5;
padding: 8px; padding: 8px;
border-radius: 4px; border-radius: 4px;
white-space: pre-wrap; white-space: pre-wrap;
word-break: break-word; word-break: break-word;
border: 1px solid var(--td-component-border); border: 1px solid #e5e7eb;
} }
.loading-indicator { .loading-indicator {
@@ -229,10 +229,10 @@ onMounted(async () => {
} }
.img_loading { .img_loading {
background: var(--td-bg-color-component); background: #3032360f;
height: 230px; height: 230px;
width: 230px; width: 230px;
color: var(--td-text-color-placeholder); color: #00000042;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
@@ -9,13 +9,13 @@
@relevance-low: #757575; @relevance-low: #757575;
@relevance-weak: #bdbdbd; @relevance-weak: #bdbdbd;
// Card colors - use CSS variables for theme support // Card colors
@card-bg: var(--td-bg-color-secondarycontainer); @card-bg: #f8f9fa;
@card-border: var(--td-component-border); @card-border: #e7e7e7;
@card-hover-border: var(--td-brand-color); @card-hover-border: #07c05f;
@card-radius: 8px; @card-radius: 8px;
@card-shadow: var(--td-shadow-1); @card-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
@card-shadow-hover: var(--td-shadow-2); @card-shadow-hover: 0 4px 8px rgba(0, 0, 0, 0.1);
// Animation timing // Animation timing
@transition-time: 0.3s; @transition-time: 0.3s;
@@ -52,7 +52,7 @@
&.weak { &.weak {
background-color: @relevance-weak; background-color: @relevance-weak;
color: var(--td-text-color-primary); color: #333;
} }
} }
@@ -63,8 +63,8 @@
padding: 2px 6px; padding: 2px 6px;
border-radius: 3px; border-radius: 3px;
font-size: 11px; font-size: 11px;
background-color: var(--td-bg-color-component); background-color: #e7e7e7;
color: var(--td-text-color-secondary); color: #666;
gap: 2px; gap: 2px;
} }
@@ -111,13 +111,13 @@
align-items: center; align-items: center;
gap: 6px; gap: 6px;
font-size: 12px; font-size: 12px;
color: var(--td-text-color-placeholder); color: #8b8b8b;
} }
.result-content { .result-content {
padding: 0 12px 12px 12px; padding: 0 12px 12px 12px;
border-top: 1px solid @card-border; border-top: 1px solid @card-border;
background: var(--td-bg-color-container); background: white;
max-height: 0; max-height: 0;
opacity: 0; opacity: 0;
overflow: hidden; overflow: hidden;
@@ -132,7 +132,7 @@
.expand-icon { .expand-icon {
font-size: 12px; font-size: 12px;
color: var(--td-text-color-placeholder); color: #8b8b8b;
transition: transform 0.2s ease; transition: transform 0.2s ease;
&.expanded { &.expanded {
@@ -152,7 +152,7 @@
.info-section-title { .info-section-title {
font-size: 12px; font-size: 12px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-secondary); color: #666;
text-transform: uppercase; text-transform: uppercase;
letter-spacing: 0.5px; letter-spacing: 0.5px;
margin-bottom: 6px; margin-bottom: 6px;
@@ -165,20 +165,20 @@
font-size: 13px; font-size: 13px;
.field-label { .field-label {
color: var(--td-text-color-placeholder); color: #8b8b8b;
min-width: 80px; min-width: 80px;
} }
.field-value { .field-value {
color: var(--td-text-color-primary); color: #333;
flex: 1; flex: 1;
} }
} }
// Statistics card (for KB counts, etc.) // Statistics card (for KB counts, etc.)
.stats-card { .stats-card {
background: var(--td-brand-color-light); background: #f0f7ff;
border: 1px solid var(--td-brand-color-3); border: 1px solid #d6e4ff;
border-radius: 6px; border-radius: 6px;
padding: 10px 12px; padding: 10px 12px;
margin-bottom: 12px; margin-bottom: 12px;
@@ -187,7 +187,7 @@
.stats-title { .stats-title {
font-size: 13px; font-size: 13px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333;
margin-bottom: 6px; margin-bottom: 6px;
} }
@@ -199,7 +199,7 @@
.stats-item { .stats-item {
font-size: 12px; font-size: 12px;
color: var(--td-text-color-secondary); color: #666;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
} }
@@ -218,7 +218,7 @@
flex-direction: column; flex-direction: column;
gap: 4px; gap: 4px;
padding: 8px 0; padding: 8px 0;
border-bottom: 1px solid var(--td-component-border); border-bottom: 1px solid #f0f0f0;
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
@@ -228,7 +228,7 @@
// Content preview (truncated) // Content preview (truncated)
.content-preview { .content-preview {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-primary); color: #333;
line-height: 1.5; line-height: 1.5;
max-height: 60px; max-height: 60px;
overflow: hidden; overflow: hidden;
@@ -241,12 +241,12 @@
// Full content // Full content
.full-content { .full-content {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-primary); color: #333;
line-height: 1.6; line-height: 1.6;
white-space: pre-wrap; white-space: pre-wrap;
word-break: break-word; word-break: break-word;
padding: 8px; padding: 8px;
background: var(--td-bg-color-component); background: #f5f5f5;
border-radius: 4px; border-radius: 4px;
border: 1px solid @card-border; border: 1px solid @card-border;
} }
@@ -257,8 +257,8 @@
font-size: 12px; font-size: 12px;
border-radius: 4px; border-radius: 4px;
border: 1px solid @card-border; border: 1px solid @card-border;
background: var(--td-bg-color-container); background: white;
color: var(--td-text-color-secondary); color: #666;
cursor: pointer; cursor: pointer;
transition: all 0.2s ease; transition: all 0.2s ease;
@@ -272,7 +272,7 @@
.empty-state { .empty-state {
padding: 24px; padding: 24px;
text-align: center; text-align: center;
color: var(--td-text-color-placeholder); color: #8b8b8b;
font-size: 14px; font-size: 14px;
} }
@@ -280,7 +280,7 @@
.code-block { .code-block {
font-family: 'Monaco', 'Courier New', monospace; font-family: 'Monaco', 'Courier New', monospace;
font-size: 12px; font-size: 12px;
background: var(--td-bg-color-component); background: #f5f5f5;
padding: 8px; padding: 8px;
border-radius: 4px; border-radius: 4px;
border: 1px solid @card-border; border: 1px solid @card-border;
@@ -26,9 +26,9 @@ const props = defineProps({
gap: 4px; gap: 4px;
flex: 1 0 0; flex: 1 0 0;
border-radius: 4px; border-radius: 4px;
background: var(--td-brand-color-light); background: #8CE97F;
margin-left: auto; margin-left: auto;
color: var(--td-text-color-primary); color: #000000e6;
font-size: 16px; font-size: 16px;
text-align: justify; text-align: justify;
word-break: break-all; word-break: break-all;
+4 -4
View File
@@ -12,7 +12,7 @@
</div> </div>
</div> </div>
<div v-if="loading" <div v-if="loading"
style="height: 41px;display: flex;align-items: center;background: var(--td-bg-color-container);width: 58px;"> style="height: 41px;display: flex;align-items: center;background: #fff;width: 58px;">
<img class="botanswer_laoding_gif" src="@/assets/img/botanswer_loading.gif" alt="正在等待答案……"> <img class="botanswer_laoding_gif" src="@/assets/img/botanswer_loading.gif" alt="正在等待答案……">
</div> </div>
</div> </div>
@@ -561,8 +561,8 @@ onBeforeRouteUpdate((to, from, next) => {
align-items: center; align-items: center;
gap: 8px; gap: 8px;
padding: 8px 16px; padding: 8px 16px;
background: var(--td-brand-color-light); background: linear-gradient(135deg, #e6f7ff 0%, #bae7ff 100%);
border: 1px solid var(--td-brand-color-3); border: 1px solid #91d5ff;
border-radius: 6px; border-radius: 6px;
margin-bottom: 12px; margin-bottom: 12px;
max-width: 800px; max-width: 800px;
@@ -575,7 +575,7 @@ onBeforeRouteUpdate((to, from, next) => {
.agent-text { .agent-text {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: var(--td-brand-color); color: #0050b3;
flex: 1; flex: 1;
} }
} }
@@ -193,7 +193,7 @@ watch(() => uiStore.showKBSettingsModal, (newVal, oldVal) => {
<style scoped lang="less"> <style scoped lang="less">
.kb-list-container { .kb-list-container {
padding: 20px; padding: 20px;
background: var(--td-bg-color-container); background: #fff;
margin: 0 20px 0 20px; margin: 0 20px 0 20px;
height: calc(100vh); height: calc(100vh);
overflow-y: auto; overflow-y: auto;
@@ -205,7 +205,7 @@ watch(() => uiStore.showKBSettingsModal, (newVal, oldVal) => {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
margin-bottom: 16px; margin-bottom: 16px;
h2 { margin: 0; font-size: 20px; font-weight: 600; color: var(--td-text-color-primary); } h2 { margin: 0; font-size: 20px; font-weight: 600; }
} }
.warning-banner { .warning-banner {
@@ -214,14 +214,14 @@ watch(() => uiStore.showKBSettingsModal, (newVal, oldVal) => {
gap: 8px; gap: 8px;
padding: 12px 16px; padding: 12px 16px;
margin-bottom: 16px; margin-bottom: 16px;
background: var(--td-warning-color-light); background: #fff7e6;
border: 1px solid var(--td-warning-color-3); border: 1px solid #ffd591;
border-radius: 6px; border-radius: 6px;
color: var(--td-warning-color); color: #d46b08;
font-size: 14px; font-size: 14px;
.t-icon { .t-icon {
color: var(--td-warning-color); color: #d46b08;
flex-shrink: 0; flex-shrink: 0;
} }
} }
@@ -232,21 +232,21 @@ watch(() => uiStore.showKBSettingsModal, (newVal, oldVal) => {
gap: 8px; gap: 8px;
.warning-icon { .warning-icon {
color: var(--td-warning-color); color: #ff8800;
cursor: pointer; cursor: pointer;
font-size: 16px; font-size: 16px;
font-weight: bold; font-weight: bold;
transition: color 0.2s; transition: color 0.2s;
&:hover { &:hover {
color: var(--td-warning-color-hover); color: #d46b08;
} }
} }
} }
.description-cell { .description-cell {
.description-text { .description-text {
color: var(--td-text-color-primary); color: #000000e6;
font-size: 14px; font-size: 14px;
} }
} }
@@ -464,9 +464,9 @@ onMounted(() => {
width: 100%; width: 100%;
max-width: 900px; max-width: 900px;
height: 700px; height: 700px;
background: var(--td-bg-color-container); background: #ffffff;
border-radius: 12px; border-radius: 12px;
box-shadow: var(--td-shadow-3); box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);
overflow: hidden; overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -481,7 +481,7 @@ onMounted(() => {
height: 32px; height: 32px;
border: none; border: none;
background: transparent; background: transparent;
color: var(--td-text-color-secondary); color: #666666;
cursor: pointer; cursor: pointer;
border-radius: 6px; border-radius: 6px;
display: flex; display: flex;
@@ -491,8 +491,8 @@ onMounted(() => {
z-index: 10; z-index: 10;
&:hover { &:hover {
background: var(--td-bg-color-container-hover); background: #f5f5f5;
color: var(--td-text-color-primary); color: #333333;
} }
} }
@@ -506,8 +506,8 @@ onMounted(() => {
/* 左侧导航栏 */ /* 左侧导航栏 */
.settings-sidebar { .settings-sidebar {
width: 220px; width: 220px;
background-color: var(--td-bg-color-secondarycontainer); background-color: #f8f9fa;
border-right: 1px solid var(--td-component-border); border-right: 1px solid #e5e7eb;
flex-shrink: 0; flex-shrink: 0;
overflow-y: auto; overflow-y: auto;
display: flex; display: flex;
@@ -516,13 +516,13 @@ onMounted(() => {
.sidebar-header { .sidebar-header {
padding: 24px 16px 16px; padding: 24px 16px 16px;
border-bottom: 1px solid var(--td-component-border); border-bottom: 1px solid #e5e7eb;
} }
.sidebar-title { .sidebar-title {
font-size: 18px; font-size: 18px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0; margin: 0;
} }
@@ -538,19 +538,19 @@ onMounted(() => {
margin-bottom: 4px; margin-bottom: 4px;
border-radius: 6px; border-radius: 6px;
cursor: pointer; cursor: pointer;
color: var(--td-text-color-secondary); color: #666666;
font-size: 14px; font-size: 14px;
transition: all 0.2s ease; transition: all 0.2s ease;
user-select: none; user-select: none;
&:hover { &:hover {
background-color: var(--td-bg-color-container-hover); background-color: #e8f5ed;
color: var(--td-text-color-primary); color: #333333;
} }
&.active { &.active {
background-color: var(--td-brand-color-light); background-color: rgba(7, 192, 95, 0.1);
color: var(--td-brand-color); color: #07C05F;
font-weight: 500; font-weight: 500;
} }
} }
@@ -573,7 +573,7 @@ onMounted(() => {
.settings-content { .settings-content {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
background-color: var(--td-bg-color-container); background-color: #ffffff;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
} }
@@ -603,11 +603,11 @@ onMounted(() => {
/* 底部保存按钮 */ /* 底部保存按钮 */
.settings-footer { .settings-footer {
padding: 16px 48px; padding: 16px 48px;
border-top: 1px solid var(--td-component-border); border-top: 1px solid #e5e7eb;
display: flex; display: flex;
justify-content: flex-end; justify-content: flex-end;
gap: 12px; gap: 12px;
background: var(--td-bg-color-container); background: #ffffff;
} }
/* 弹窗动画 */ /* 弹窗动画 */
@@ -640,29 +640,29 @@ onMounted(() => {
} }
.settings-sidebar::-webkit-scrollbar-track { .settings-sidebar::-webkit-scrollbar-track {
background: var(--td-bg-color-secondarycontainer); background: #f8f9fa;
} }
.settings-sidebar::-webkit-scrollbar-thumb { .settings-sidebar::-webkit-scrollbar-thumb {
background: var(--td-bg-color-component); background: #d0d0d0;
border-radius: 3px; border-radius: 3px;
} }
.settings-sidebar::-webkit-scrollbar-thumb:hover { .settings-sidebar::-webkit-scrollbar-thumb:hover {
background: var(--td-bg-color-component-hover); background: #b0b0b0;
} }
.content-wrapper::-webkit-scrollbar-track { .content-wrapper::-webkit-scrollbar-track {
background: var(--td-bg-color-container); background: #ffffff;
} }
.content-wrapper::-webkit-scrollbar-thumb { .content-wrapper::-webkit-scrollbar-thumb {
background: var(--td-bg-color-component); background: #d0d0d0;
border-radius: 3px; border-radius: 3px;
} }
.content-wrapper::-webkit-scrollbar-thumb:hover { .content-wrapper::-webkit-scrollbar-thumb:hover {
background: var(--td-bg-color-component-hover); background: #b0b0b0;
} }
</style> </style>
@@ -379,13 +379,13 @@ const handleConfigChange = () => {
h2 { h2 {
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0 0 8px 0; margin: 0 0 8px 0;
} }
.section-description { .section-description {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -402,7 +402,7 @@ const handleConfigChange = () => {
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
padding: 20px 0; padding: 20px 0;
border-bottom: 1px solid var(--td-component-border); border-bottom: 1px solid #e5e7eb;
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
@@ -417,14 +417,14 @@ const handleConfigChange = () => {
label { label {
font-size: 15px; font-size: 15px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
display: block; display: block;
margin-bottom: 4px; margin-bottom: 4px;
} }
.desc { .desc {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -441,9 +441,9 @@ const handleConfigChange = () => {
.subsection { .subsection {
padding: 16px 20px; padding: 16px 20px;
margin: 12px 0 0 0; margin: 12px 0 0 0;
background: var(--td-bg-color-secondarycontainer); background: #f8fafb;
border-radius: 8px; border-radius: 8px;
border-left: 3px solid var(--td-brand-color); border-left: 3px solid #07C05F;
position: relative; position: relative;
} }
@@ -457,20 +457,20 @@ const handleConfigChange = () => {
h4 { h4 {
font-size: 15px; font-size: 15px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0; margin: 0;
padding-left: 8px; padding-left: 8px;
border-left: 2px solid var(--td-brand-color); border-left: 2px solid #07C05F;
.required { .required {
color: var(--td-error-color); color: #e34d59;
margin-left: 4px; margin-left: 4px;
} }
} }
} }
.required { .required {
color: var(--td-error-color); color: #e34d59;
margin-left: 2px; margin-left: 2px;
font-weight: 500; font-weight: 500;
} }
@@ -131,13 +131,13 @@ const handleDescriptionChange = () => {
h2 { h2 {
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0 0 8px 0; margin: 0 0 8px 0;
} }
.section-description { .section-description {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -154,7 +154,7 @@ const handleDescriptionChange = () => {
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
padding: 20px 0; padding: 20px 0;
border-bottom: 1px solid var(--td-component-border); border-bottom: 1px solid #e5e7eb;
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
@@ -169,19 +169,19 @@ const handleDescriptionChange = () => {
label { label {
font-size: 15px; font-size: 15px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
display: block; display: block;
margin-bottom: 4px; margin-bottom: 4px;
.required { .required {
color: var(--td-error-color); color: #fa5151;
margin-left: 2px; margin-left: 2px;
} }
} }
.desc { .desc {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -149,13 +149,13 @@ const emitUpdate = () => {
h2 { h2 {
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0 0 8px 0; margin: 0 0 8px 0;
} }
.section-description { .section-description {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -172,7 +172,7 @@ const emitUpdate = () => {
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
padding: 20px 0; padding: 20px 0;
border-bottom: 1px solid var(--td-component-border); border-bottom: 1px solid #e5e7eb;
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
@@ -187,14 +187,14 @@ const emitUpdate = () => {
label { label {
font-size: 15px; font-size: 15px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
display: block; display: block;
margin-bottom: 4px; margin-bottom: 4px;
} }
.desc { .desc {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -218,7 +218,7 @@ const emitUpdate = () => {
.value-display { .value-display {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-primary); color: #333333;
font-weight: 500; font-weight: 500;
min-width: 80px; min-width: 80px;
text-align: right; text-align: right;
@@ -150,13 +150,13 @@ const handleAddModel = (subSection: string) => {
h2 { h2 {
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0 0 8px 0; margin: 0 0 8px 0;
} }
.section-description { .section-description {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -173,7 +173,7 @@ const handleAddModel = (subSection: string) => {
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
padding: 20px 0; padding: 20px 0;
border-bottom: 1px solid var(--td-component-border); border-bottom: 1px solid #e5e7eb;
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
@@ -188,19 +188,19 @@ const handleAddModel = (subSection: string) => {
label { label {
font-size: 15px; font-size: 15px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
display: block; display: block;
margin-bottom: 4px; margin-bottom: 4px;
.required { .required {
color: var(--td-error-color); color: #fa5151;
margin-left: 2px; margin-left: 2px;
} }
} }
.desc { .desc {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -554,13 +554,13 @@ const handleAllowedToolsChange = async (value: string[]) => {
h2 { h2 {
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0 0 8px 0; margin: 0 0 8px 0;
} }
.section-description { .section-description {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -577,7 +577,7 @@ const handleAllowedToolsChange = async (value: string[]) => {
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
padding: 20px 0; padding: 20px 0;
border-bottom: 1px solid var(--td-component-border); border-bottom: 1px solid #e5e7eb;
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
@@ -606,14 +606,14 @@ const handleAllowedToolsChange = async (value: string[]) => {
label { label {
font-size: 15px; font-size: 15px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
display: block; display: block;
margin-bottom: 4px; margin-bottom: 4px;
} }
.desc { .desc {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -637,7 +637,7 @@ const handleAllowedToolsChange = async (value: string[]) => {
.value-display { .value-display {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
min-width: 40px; min-width: 40px;
text-align: right; text-align: right;
} }
@@ -651,12 +651,12 @@ const handleAllowedToolsChange = async (value: string[]) => {
.model-icon { .model-icon {
font-size: 14px; font-size: 14px;
color: var(--td-brand-color); color: #07C05F;
} }
.add-icon { .add-icon {
font-size: 14px; font-size: 14px;
color: var(--td-brand-color); color: #07C05F;
} }
.model-name { .model-name {
@@ -666,7 +666,7 @@ const handleAllowedToolsChange = async (value: string[]) => {
&.add { &.add {
.model-name { .model-name {
color: var(--td-brand-color); color: #07C05F;
font-weight: 500; font-weight: 500;
} }
} }
@@ -48,11 +48,8 @@
</template> </template>
<script setup lang="ts"> <script setup lang="ts">
import { ref, onMounted, watch } from 'vue' import { ref, onMounted } from 'vue'
import { MessagePlugin } from 'tdesign-vue-next' import { MessagePlugin } from 'tdesign-vue-next'
import { useUIStore } from '@/stores/ui'
const uiStore = useUIStore()
// 本地状态 // 本地状态
const localLanguage = ref('zh-CN') const localLanguage = ref('zh-CN')
@@ -71,13 +68,6 @@ onMounted(() => {
console.error('加载常规设置失败:', e) console.error('加载常规设置失败:', e)
} }
} }
// 同步 store 的主题状态
localTheme.value = uiStore.theme
})
// 监听 store 的主题变化,同步到本地状态
watch(() => uiStore.theme, (newTheme) => {
localTheme.value = newTheme
}) })
// 保存设置到 localStorage // 保存设置到 localStorage
@@ -98,8 +88,9 @@ const handleLanguageChange = () => {
// 处理主题变化 // 处理主题变化
const handleThemeChange = () => { const handleThemeChange = () => {
uiStore.setTheme(localTheme.value as 'light' | 'dark') saveSettings()
MessagePlugin.success('主题设置已保存') MessagePlugin.success('主题设置已保存')
// TODO: 实际的主题切换逻辑可后续添加
} }
</script> </script>
@@ -114,13 +105,13 @@ const handleThemeChange = () => {
h2 { h2 {
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0 0 8px 0; margin: 0 0 8px 0;
} }
.section-description { .section-description {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -137,7 +128,7 @@ const handleThemeChange = () => {
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
padding: 20px 0; padding: 20px 0;
border-bottom: 1px solid var(--td-component-border); border-bottom: 1px solid #e5e7eb;
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
@@ -152,14 +143,14 @@ const handleThemeChange = () => {
label { label {
font-size: 15px; font-size: 15px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
display: block; display: block;
margin-bottom: 4px; margin-bottom: 4px;
} }
.desc { .desc {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -138,13 +138,13 @@ const handleLanguageDetectionChange = () => {
h2 { h2 {
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0 0 8px 0; margin: 0 0 8px 0;
} }
.section-description { .section-description {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -161,7 +161,7 @@ const handleLanguageDetectionChange = () => {
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
padding: 20px 0; padding: 20px 0;
border-bottom: 1px solid var(--td-component-border); border-bottom: 1px solid #e5e7eb;
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
@@ -176,14 +176,14 @@ const handleLanguageDetectionChange = () => {
label { label {
font-size: 15px; font-size: 15px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
display: block; display: block;
margin-bottom: 4px; margin-bottom: 4px;
} }
.desc { .desc {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -207,7 +207,7 @@ const handleLanguageDetectionChange = () => {
.value-display { .value-display {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
min-width: 40px; min-width: 40px;
text-align: right; text-align: right;
} }
+19 -19
View File
@@ -466,13 +466,13 @@ onMounted(() => {
h2 { h2 {
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0 0 8px 0; margin: 0 0 8px 0;
} }
.section-description { .section-description {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -480,10 +480,10 @@ onMounted(() => {
.model-category-section { .model-category-section {
margin-bottom: 24px; margin-bottom: 24px;
border: 1px solid var(--td-component-border); border: 1px solid #e5e7eb;
border-radius: 8px; border-radius: 8px;
padding: 24px; padding: 24px;
background: var(--td-bg-color-container); background: #ffffff;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
@@ -502,13 +502,13 @@ onMounted(() => {
h3 { h3 {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0 0 4px 0; margin: 0 0 4px 0;
} }
p { p {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -543,16 +543,16 @@ onMounted(() => {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 10px 12px; padding: 10px 12px;
border: 1px solid var(--td-component-border); border: 1px solid #e5e7eb;
border-radius: 6px; border-radius: 6px;
background: var(--td-bg-color-secondarycontainer); background: #fafafa;
transition: all 0.2s; transition: all 0.2s;
position: relative; position: relative;
overflow: visible; overflow: visible;
&:hover { &:hover {
border-color: var(--td-brand-color); border-color: #07C05F;
background: var(--td-bg-color-container); background: #ffffff;
} }
} }
@@ -563,7 +563,7 @@ onMounted(() => {
.model-name { .model-name {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
margin-bottom: 4px; margin-bottom: 4px;
display: flex; display: flex;
align-items: center; align-items: center;
@@ -575,22 +575,22 @@ onMounted(() => {
align-items: center; align-items: center;
gap: 10px; gap: 10px;
font-size: 12px; font-size: 12px;
color: var(--td-text-color-secondary); color: #666666;
.source-tag { .source-tag {
padding: 1px 6px; padding: 1px 6px;
background: var(--td-bg-color-component); background: #e5e7eb;
border-radius: 3px; border-radius: 3px;
font-size: 11px; font-size: 11px;
} }
.model-id { .model-id {
font-family: monospace; font-family: monospace;
color: var(--td-text-color-secondary); color: #666666;
} }
.dimension { .dimension {
color: var(--td-text-color-placeholder); color: #999999;
} }
} }
} }
@@ -606,12 +606,12 @@ onMounted(() => {
z-index: 1001; // 确保高于设置窗口的z-index (9999) z-index: 1001; // 确保高于设置窗口的z-index (9999)
.more-btn { .more-btn {
color: var(--td-text-color-secondary); color: #666666;
padding: 4px; padding: 4px;
&:hover { &:hover {
background: var(--td-bg-color-component-hover); background: #f5f7fa;
color: var(--td-text-color-primary); color: #333333;
} }
} }
} }
@@ -626,7 +626,7 @@ onMounted(() => {
.empty-text { .empty-text {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-placeholder); color: #999999;
margin: 0 0 16px 0; margin: 0 0 16px 0;
} }
} }
+25 -25
View File
@@ -393,13 +393,13 @@ onMounted(async () => {
h2 { h2 {
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0 0 8px 0; margin: 0 0 8px 0;
} }
.section-description { .section-description {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -416,7 +416,7 @@ onMounted(async () => {
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
padding: 20px 0; padding: 20px 0;
border-bottom: 1px solid var(--td-component-border); border-bottom: 1px solid #e5e7eb;
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
@@ -431,14 +431,14 @@ onMounted(async () => {
label { label {
font-size: 15px; font-size: 15px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
display: block; display: block;
margin-bottom: 4px; margin-bottom: 4px;
} }
.desc { .desc {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -467,11 +467,11 @@ onMounted(async () => {
font-size: 18px; font-size: 18px;
&.success { &.success {
color: var(--td-success-color); color: #07C05F;
} }
&.error { &.error {
color: var(--td-error-color); color: #e34d59;
} }
&.spinning { &.spinning {
@@ -483,10 +483,10 @@ onMounted(async () => {
.model-category-section { .model-category-section {
margin-bottom: 24px; margin-bottom: 24px;
border: 1px solid var(--td-component-border); border: 1px solid #e5e7eb;
border-radius: 8px; border-radius: 8px;
padding: 24px; padding: 24px;
background: var(--td-bg-color-container); background: #ffffff;
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;
@@ -505,13 +505,13 @@ onMounted(async () => {
h3 { h3 {
font-size: 16px; font-size: 16px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0 0 4px 0; margin: 0 0 4px 0;
} }
p { p {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -524,7 +524,7 @@ onMounted(async () => {
justify-content: center; justify-content: center;
gap: 8px; gap: 8px;
padding: 60px; padding: 60px;
color: var(--td-text-color-secondary); color: #666666;
font-size: 14px; font-size: 14px;
} }
@@ -543,14 +543,14 @@ onMounted(async () => {
align-items: center; align-items: center;
justify-content: space-between; justify-content: space-between;
padding: 10px 12px; padding: 10px 12px;
border: 1px solid var(--td-component-border); border: 1px solid #e5e7eb;
border-radius: 6px; border-radius: 6px;
background: var(--td-bg-color-secondarycontainer); background: #fafafa;
transition: all 0.2s; transition: all 0.2s;
&:hover { &:hover {
border-color: var(--td-brand-color); border-color: #07C05F;
background: var(--td-bg-color-container); background: #ffffff;
} }
} }
@@ -561,7 +561,7 @@ onMounted(async () => {
.model-name { .model-name {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
margin-bottom: 4px; margin-bottom: 4px;
font-family: monospace; font-family: monospace;
} }
@@ -570,7 +570,7 @@ onMounted(async () => {
display: flex; display: flex;
gap: 12px; gap: 12px;
font-size: 12px; font-size: 12px;
color: var(--td-text-color-secondary); color: #666666;
} }
} }
@@ -586,7 +586,7 @@ onMounted(async () => {
.download-progress { .download-progress {
padding: 12px; padding: 12px;
background: var(--td-bg-color-component); background: #f5f7fa;
border-radius: 6px; border-radius: 6px;
.progress-info { .progress-info {
@@ -594,14 +594,14 @@ onMounted(async () => {
justify-content: space-between; justify-content: space-between;
margin-bottom: 8px; margin-bottom: 8px;
font-size: 13px; font-size: 13px;
color: var(--td-text-color-primary); color: #333333;
} }
} }
.recommended-models { .recommended-models {
.recommended-label { .recommended-label {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0 0 10px 0; margin: 0 0 10px 0;
font-weight: 500; font-weight: 500;
} }
@@ -617,9 +617,9 @@ onMounted(async () => {
font-size: 12px; font-size: 12px;
&:hover { &:hover {
background: var(--td-brand-color); background: #07C05F;
color: var(--td-text-color-anti); color: #ffffff;
border-color: var(--td-brand-color); border-color: #07C05F;
} }
} }
} }
@@ -632,7 +632,7 @@ onMounted(async () => {
.empty-text { .empty-text {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-placeholder); color: #999999;
margin: 0; margin: 0;
} }
} }
+26 -26
View File
@@ -256,9 +256,9 @@ onUnmounted(() => {
width: 100%; width: 100%;
max-width: 900px; max-width: 900px;
height: 700px; height: 700px;
background: var(--td-bg-color-container); background: #ffffff;
border-radius: 12px; border-radius: 12px;
box-shadow: var(--td-shadow-3); box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);
overflow: hidden; overflow: hidden;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -273,7 +273,7 @@ onUnmounted(() => {
height: 32px; height: 32px;
border: none; border: none;
background: transparent; background: transparent;
color: var(--td-text-color-secondary); color: #666666;
cursor: pointer; cursor: pointer;
border-radius: 6px; border-radius: 6px;
display: flex; display: flex;
@@ -283,8 +283,8 @@ onUnmounted(() => {
z-index: 10; z-index: 10;
&:hover { &:hover {
background: var(--td-bg-color-container-hover); background: #f5f5f5;
color: var(--td-text-color-primary); color: #333333;
} }
} }
@@ -298,8 +298,8 @@ onUnmounted(() => {
/* 左侧导航栏 */ /* 左侧导航栏 */
.settings-sidebar { .settings-sidebar {
width: 220px; width: 220px;
background-color: var(--td-bg-color-secondarycontainer); background-color: #f8f9fa;
border-right: 1px solid var(--td-component-border); border-right: 1px solid #e5e7eb;
flex-shrink: 0; flex-shrink: 0;
overflow-y: auto; overflow-y: auto;
display: flex; display: flex;
@@ -308,13 +308,13 @@ onUnmounted(() => {
.sidebar-header { .sidebar-header {
padding: 24px 16px 16px; padding: 24px 16px 16px;
border-bottom: 1px solid var(--td-component-border); border-bottom: 1px solid #e5e7eb;
} }
.sidebar-title { .sidebar-title {
font-size: 18px; font-size: 18px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0; margin: 0;
} }
@@ -330,19 +330,19 @@ onUnmounted(() => {
margin-bottom: 4px; margin-bottom: 4px;
border-radius: 6px; border-radius: 6px;
cursor: pointer; cursor: pointer;
color: var(--td-text-color-secondary); color: #666666;
font-size: 14px; font-size: 14px;
transition: all 0.2s ease; transition: all 0.2s ease;
user-select: none; user-select: none;
&:hover { &:hover {
background-color: var(--td-bg-color-container-hover); background-color: #e8f5ed;
color: var(--td-text-color-primary); color: #333333;
} }
&.active { &.active {
background-color: var(--td-brand-color-light); background-color: rgba(7, 192, 95, 0.1);
color: var(--td-brand-color); color: #07C05F;
font-weight: 500; font-weight: 500;
} }
} }
@@ -379,19 +379,19 @@ onUnmounted(() => {
margin-bottom: 2px; margin-bottom: 2px;
border-radius: 4px; border-radius: 4px;
cursor: pointer; cursor: pointer;
color: var(--td-text-color-secondary); color: #666666;
font-size: 13px; font-size: 13px;
transition: all 0.2s ease; transition: all 0.2s ease;
user-select: none; user-select: none;
&:hover { &:hover {
background-color: var(--td-bg-color-component-hover); background-color: #f5f7fa;
color: var(--td-text-color-primary); color: #333333;
} }
&.active { &.active {
background-color: var(--td-brand-color-light); background-color: rgba(7, 192, 95, 0.08);
color: var(--td-brand-color); color: #07C05F;
font-weight: 500; font-weight: 500;
} }
} }
@@ -430,7 +430,7 @@ onUnmounted(() => {
.settings-content { .settings-content {
flex: 1; flex: 1;
overflow-y: auto; overflow-y: auto;
background-color: var(--td-bg-color-container); background-color: #ffffff;
} }
.content-wrapper { .content-wrapper {
@@ -482,29 +482,29 @@ onUnmounted(() => {
} }
.settings-sidebar::-webkit-scrollbar-track { .settings-sidebar::-webkit-scrollbar-track {
background: var(--td-bg-color-secondarycontainer); background: #f8f9fa;
} }
.settings-sidebar::-webkit-scrollbar-thumb { .settings-sidebar::-webkit-scrollbar-thumb {
background: var(--td-bg-color-component); background: #d0d0d0;
border-radius: 3px; border-radius: 3px;
} }
.settings-sidebar::-webkit-scrollbar-thumb:hover { .settings-sidebar::-webkit-scrollbar-thumb:hover {
background: var(--td-bg-color-component-hover); background: #b0b0b0;
} }
.settings-content::-webkit-scrollbar-track { .settings-content::-webkit-scrollbar-track {
background: var(--td-bg-color-container); background: #ffffff;
} }
.settings-content::-webkit-scrollbar-thumb { .settings-content::-webkit-scrollbar-thumb {
background: var(--td-bg-color-component); background: #d0d0d0;
border-radius: 3px; border-radius: 3px;
} }
.settings-content::-webkit-scrollbar-thumb:hover { .settings-content::-webkit-scrollbar-thumb:hover {
background: var(--td-bg-color-component-hover); background: #b0b0b0;
} }
</style> </style>
+11 -11
View File
@@ -411,13 +411,13 @@ onMounted(() => {
h2 { h2 {
font-size: 20px; font-size: 20px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin: 0 0 8px 0; margin: 0 0 8px 0;
} }
.section-description { .section-description {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -429,7 +429,7 @@ onMounted(() => {
gap: 12px; gap: 12px;
padding: 40px 0; padding: 40px 0;
justify-content: center; justify-content: center;
color: var(--td-text-color-secondary); color: #666666;
font-size: 14px; font-size: 14px;
} }
@@ -448,7 +448,7 @@ onMounted(() => {
align-items: flex-start; align-items: flex-start;
justify-content: space-between; justify-content: space-between;
padding: 20px 0; padding: 20px 0;
border-bottom: 1px solid var(--td-component-border); border-bottom: 1px solid #e5e7eb;
&:last-child { &:last-child {
border-bottom: none; border-bottom: none;
@@ -463,14 +463,14 @@ onMounted(() => {
label { label {
font-size: 15px; font-size: 15px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
display: block; display: block;
margin-bottom: 4px; margin-bottom: 4px;
} }
.desc { .desc {
font-size: 13px; font-size: 13px;
color: var(--td-text-color-secondary); color: #666666;
margin: 0; margin: 0;
line-height: 1.5; line-height: 1.5;
} }
@@ -485,12 +485,12 @@ onMounted(() => {
.info-value { .info-value {
font-size: 14px; font-size: 14px;
color: var(--td-text-color-primary); color: #333333;
text-align: right; text-align: right;
word-break: break-word; word-break: break-word;
.commit-info { .commit-info {
color: var(--td-text-color-placeholder); color: #999999;
font-size: 12px; font-size: 12px;
margin-left: 6px; margin-left: 6px;
} }
@@ -512,8 +512,8 @@ onMounted(() => {
.usage-text { .usage-text {
font-size: 14px; font-size: 14px;
font-weight: 500; font-weight: 500;
color: var(--td-text-color-primary); color: #333333;
min-width: 50px; min-width: 50px;
text-align: right; text-align: right;
} }
@@ -522,7 +522,7 @@ onMounted(() => {
.info-section-title { .info-section-title {
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
color: var(--td-text-color-primary); color: #333333;
margin-top: 24px; margin-top: 24px;
margin-bottom: 12px; margin-bottom: 12px;