update color cystem

This commit is contained in:
Wenjie Zhang 2024-09-25 13:46:51 +08:00
parent 6f81b061d2
commit 06ed1a44ed
8 changed files with 26 additions and 28 deletions

View File

@ -500,7 +500,7 @@ watch(
justify-content: center; justify-content: center;
align-items: center; align-items: center;
border-radius: 8px; border-radius: 8px;
color: var(--c-text-light-1); color: var(--gray-900);
cursor: pointer; cursor: pointer;
font-size: 1rem; font-size: 1rem;
width: auto; width: auto;
@ -719,7 +719,7 @@ watch(
padding: 0; padding: 0;
&:hover { &:hover {
color: var(--c-text-dark-1); color: var(--gray-1000);
} }
&:disabled { &:disabled {
@ -741,7 +741,7 @@ watch(
.ant-dropdown-link { .ant-dropdown-link {
color: var(--c-text-light-1); color: var(--gray-900);
cursor: pointer; cursor: pointer;
} }
@ -758,7 +758,7 @@ watch(
} }
.chat::-webkit-scrollbar-thumb { .chat::-webkit-scrollbar-thumb {
background: var(--c-text-dark-2); background: var(--gray-400);
border-radius: 4px; border-radius: 4px;
} }

View File

@ -73,7 +73,7 @@
} }
.error { .error {
color: red; color: var(--error-color);
} }
.log-container { .log-container {

View File

@ -198,7 +198,7 @@ div.header, #app-router-view {
flex-direction: column; flex-direction: column;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
width: 56px; width: 52px;
padding: 4px; padding: 4px;
padding-top: 10px; padding-top: 10px;
border: 1px solid transparent; border: 1px solid transparent;
@ -225,7 +225,6 @@ div.header, #app-router-view {
color: var(--main-600); color: var(--main-600);
background-color: rgba(255, 255, 255, 0.8); background-color: rgba(255, 255, 255, 0.8);
backdrop-filter: blur(10px); backdrop-filter: blur(10px);
box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.05);
border: 1px solid white; border: 1px solid white;
} }
@ -286,7 +285,7 @@ div.header, #app-router-view {
.nav-item { .nav-item {
text-decoration: none; text-decoration: none;
width: 40px; width: 40px;
color: var(--c-black-soft); color: var(--gray-900);
font-size: 1rem; font-size: 1rem;
font-weight: bold; font-weight: bold;
transition: color 0.1s ease-in-out, font-size 0.1s ease-in-out; transition: color 0.1s ease-in-out, font-size 0.1s ease-in-out;

View File

@ -86,12 +86,11 @@ const router = createRouter({
component: () => import('../views/ToolsView.vue'), component: () => import('../views/ToolsView.vue'),
meta: { keepAlive: true } meta: { keepAlive: true }
}, },
// { {
// path: ':id', path: 'text_chunking',
// name: 'ToolsComponent', name: 'TextChunking',
// component: () => import('../views/ToolsFooComponent.vue'), component: () => import('../components/TextChunkingComponent.vue'),
// meta: { keepAlive: true } },
// }
] ]
}, },
{ {

View File

@ -139,7 +139,7 @@ onMounted(() => {
border-right: 1px solid var(--main-light-3); border-right: 1px solid var(--main-light-3);
overflow: hidden; /* 确保内容不溢出 */ overflow: hidden; /* 确保内容不溢出 */
max-height: 100%; max-height: 100%;
background-color: #FAFCFD; background-color: var(--bg-sider);
& .actions { & .actions {
height: var(--header-height); height: var(--header-height);
@ -158,7 +158,7 @@ onMounted(() => {
justify-content: center; justify-content: center;
align-items: center; align-items: center;
border-radius: 8px; border-radius: 8px;
color: var(--c-black-light-2); color: var(--gray-800);
cursor: pointer; cursor: pointer;
&:hover { &:hover {
@ -184,7 +184,7 @@ onMounted(() => {
user-select: none; user-select: none;
&__title { &__title {
color: var(--c-black-light-3); color: var(--gray-700);
white-space: nowrap; /* 禁止换行 */ white-space: nowrap; /* 禁止换行 */
overflow: hidden; /* 超出部分隐藏 */ overflow: hidden; /* 超出部分隐藏 */
text-overflow: ellipsis; /* 显示省略号 */ text-overflow: ellipsis; /* 显示省略号 */
@ -231,7 +231,7 @@ onMounted(() => {
} }
.conversation-list::-webkit-scrollbar-thumb { .conversation-list::-webkit-scrollbar-thumb {
background: var(--c-text-dark-2); background: var(--gray-400);
border-radius: 4px; border-radius: 4px;
} }

View File

@ -630,7 +630,7 @@ onMounted(() => {
p { p {
margin: 0; margin: 0;
font-size: 15px; font-size: 15px;
color: var(--c-text-light-1); color: var(--gray-900);
} }
&.col { &.col {
@ -682,7 +682,7 @@ onMounted(() => {
&:disabled { &:disabled {
cursor: not-allowed; cursor: not-allowed;
background: var(--main-light-4); background: var(--main-light-4);
color: var(--c-black-light-3); color: var(--gray-700);
} }
} }
} }
@ -746,7 +746,7 @@ onMounted(() => {
.query-text { .query-text {
font-style: italic; font-style: italic;
color: var(--c-text-light-1); color: var(--gray-900);
} }
} }
} }
@ -765,7 +765,7 @@ onMounted(() => {
p { p {
margin-bottom: 8px; margin-bottom: 8px;
line-height: 1.6; line-height: 1.6;
color: var(--c-text-light-1); color: var(--gray-900);
&:last-child { &:last-child {
margin-bottom: 0; margin-bottom: 0;

View File

@ -10,7 +10,7 @@
</HeaderComponent> </HeaderComponent>
<a-modal :open="newDatabase.open" title="新建数据库" @ok="createDatabase"> <a-modal :open="newDatabase.open" title="新建数据库" @ok="createDatabase">
<h3>数据库名称<span style="color: red">*</span></h3> <h3>数据库名称<span style="color: var(--error-color)">*</span></h3>
<a-input v-model:value="newDatabase.name" placeholder="新建数据库名称" /> <a-input v-model:value="newDatabase.name" placeholder="新建数据库名称" />
<h3 style="margin-top: 20px;">数据库描述</h3> <h3 style="margin-top: 20px;">数据库描述</h3>
<a-textarea <a-textarea
@ -260,14 +260,14 @@ onMounted(() => {
} }
p { p {
color: var(--c-text-light-1); color: var(--gray-900);
font-size: small; font-size: small;
} }
} }
} }
.description { .description {
color: var(--c-text-light-1); color: var(--gray-900);
overflow: hidden; overflow: hidden;
display: -webkit-box; display: -webkit-box;
-webkit-line-clamp: 1; -webkit-line-clamp: 1;
@ -288,7 +288,7 @@ onMounted(() => {
align-items: center; align-items: center;
height: 100%; height: 100%;
flex-direction: column; flex-direction: column;
color: var(--c-text-light-1); color: var(--gray-900);
} }
.database-container { .database-container {

View File

@ -412,6 +412,6 @@ const graphStatusText = computed(() => {
width: 100%; width: 100%;
height: 100%; height: 100%;
flex-direction: column; flex-direction: column;
color: var(--c-text-light-1); color: var(--gray-900);
} }
</style> </style>