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:
@@ -193,7 +193,7 @@ watch(() => uiStore.showKBSettingsModal, (newVal, oldVal) => {
|
||||
<style scoped lang="less">
|
||||
.kb-list-container {
|
||||
padding: 20px;
|
||||
background: var(--td-bg-color-container);
|
||||
background: #fff;
|
||||
margin: 0 20px 0 20px;
|
||||
height: calc(100vh);
|
||||
overflow-y: auto;
|
||||
@@ -205,7 +205,7 @@ watch(() => uiStore.showKBSettingsModal, (newVal, oldVal) => {
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
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 {
|
||||
@@ -214,14 +214,14 @@ watch(() => uiStore.showKBSettingsModal, (newVal, oldVal) => {
|
||||
gap: 8px;
|
||||
padding: 12px 16px;
|
||||
margin-bottom: 16px;
|
||||
background: var(--td-warning-color-light);
|
||||
border: 1px solid var(--td-warning-color-3);
|
||||
background: #fff7e6;
|
||||
border: 1px solid #ffd591;
|
||||
border-radius: 6px;
|
||||
color: var(--td-warning-color);
|
||||
color: #d46b08;
|
||||
font-size: 14px;
|
||||
|
||||
.t-icon {
|
||||
color: var(--td-warning-color);
|
||||
color: #d46b08;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
}
|
||||
@@ -232,21 +232,21 @@ watch(() => uiStore.showKBSettingsModal, (newVal, oldVal) => {
|
||||
gap: 8px;
|
||||
|
||||
.warning-icon {
|
||||
color: var(--td-warning-color);
|
||||
color: #ff8800;
|
||||
cursor: pointer;
|
||||
font-size: 16px;
|
||||
font-weight: bold;
|
||||
transition: color 0.2s;
|
||||
|
||||
&:hover {
|
||||
color: var(--td-warning-color-hover);
|
||||
color: #d46b08;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.description-cell {
|
||||
.description-text {
|
||||
color: var(--td-text-color-primary);
|
||||
color: #000000e6;
|
||||
font-size: 14px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -464,9 +464,9 @@ onMounted(() => {
|
||||
width: 100%;
|
||||
max-width: 900px;
|
||||
height: 700px;
|
||||
background: var(--td-bg-color-container);
|
||||
background: #ffffff;
|
||||
border-radius: 12px;
|
||||
box-shadow: var(--td-shadow-3);
|
||||
box-shadow: 0 6px 28px rgba(15, 23, 42, 0.08);
|
||||
overflow: hidden;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
@@ -481,7 +481,7 @@ onMounted(() => {
|
||||
height: 32px;
|
||||
border: none;
|
||||
background: transparent;
|
||||
color: var(--td-text-color-secondary);
|
||||
color: #666666;
|
||||
cursor: pointer;
|
||||
border-radius: 6px;
|
||||
display: flex;
|
||||
@@ -491,8 +491,8 @@ onMounted(() => {
|
||||
z-index: 10;
|
||||
|
||||
&:hover {
|
||||
background: var(--td-bg-color-container-hover);
|
||||
color: var(--td-text-color-primary);
|
||||
background: #f5f5f5;
|
||||
color: #333333;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -506,8 +506,8 @@ onMounted(() => {
|
||||
/* 左侧导航栏 */
|
||||
.settings-sidebar {
|
||||
width: 220px;
|
||||
background-color: var(--td-bg-color-secondarycontainer);
|
||||
border-right: 1px solid var(--td-component-border);
|
||||
background-color: #f8f9fa;
|
||||
border-right: 1px solid #e5e7eb;
|
||||
flex-shrink: 0;
|
||||
overflow-y: auto;
|
||||
display: flex;
|
||||
@@ -516,13 +516,13 @@ onMounted(() => {
|
||||
|
||||
.sidebar-header {
|
||||
padding: 24px 16px 16px;
|
||||
border-bottom: 1px solid var(--td-component-border);
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
}
|
||||
|
||||
.sidebar-title {
|
||||
font-size: 18px;
|
||||
font-weight: 600;
|
||||
color: var(--td-text-color-primary);
|
||||
color: #333333;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@@ -538,19 +538,19 @@ onMounted(() => {
|
||||
margin-bottom: 4px;
|
||||
border-radius: 6px;
|
||||
cursor: pointer;
|
||||
color: var(--td-text-color-secondary);
|
||||
color: #666666;
|
||||
font-size: 14px;
|
||||
transition: all 0.2s ease;
|
||||
user-select: none;
|
||||
|
||||
&:hover {
|
||||
background-color: var(--td-bg-color-container-hover);
|
||||
color: var(--td-text-color-primary);
|
||||
background-color: #e8f5ed;
|
||||
color: #333333;
|
||||
}
|
||||
|
||||
&.active {
|
||||
background-color: var(--td-brand-color-light);
|
||||
color: var(--td-brand-color);
|
||||
background-color: rgba(7, 192, 95, 0.1);
|
||||
color: #07C05F;
|
||||
font-weight: 500;
|
||||
}
|
||||
}
|
||||
@@ -573,7 +573,7 @@ onMounted(() => {
|
||||
.settings-content {
|
||||
flex: 1;
|
||||
overflow-y: auto;
|
||||
background-color: var(--td-bg-color-container);
|
||||
background-color: #ffffff;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
@@ -603,11 +603,11 @@ onMounted(() => {
|
||||
/* 底部保存按钮 */
|
||||
.settings-footer {
|
||||
padding: 16px 48px;
|
||||
border-top: 1px solid var(--td-component-border);
|
||||
border-top: 1px solid #e5e7eb;
|
||||
display: flex;
|
||||
justify-content: flex-end;
|
||||
gap: 12px;
|
||||
background: var(--td-bg-color-container);
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
/* 弹窗动画 */
|
||||
@@ -640,29 +640,29 @@ onMounted(() => {
|
||||
}
|
||||
|
||||
.settings-sidebar::-webkit-scrollbar-track {
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
background: #f8f9fa;
|
||||
}
|
||||
|
||||
.settings-sidebar::-webkit-scrollbar-thumb {
|
||||
background: var(--td-bg-color-component);
|
||||
background: #d0d0d0;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.settings-sidebar::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--td-bg-color-component-hover);
|
||||
background: #b0b0b0;
|
||||
}
|
||||
|
||||
.content-wrapper::-webkit-scrollbar-track {
|
||||
background: var(--td-bg-color-container);
|
||||
background: #ffffff;
|
||||
}
|
||||
|
||||
.content-wrapper::-webkit-scrollbar-thumb {
|
||||
background: var(--td-bg-color-component);
|
||||
background: #d0d0d0;
|
||||
border-radius: 3px;
|
||||
}
|
||||
|
||||
.content-wrapper::-webkit-scrollbar-thumb:hover {
|
||||
background: var(--td-bg-color-component-hover);
|
||||
background: #b0b0b0;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
@@ -379,13 +379,13 @@ const handleConfigChange = () => {
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: var(--td-text-color-primary);
|
||||
color: #333333;
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.section-description {
|
||||
font-size: 14px;
|
||||
color: var(--td-text-color-secondary);
|
||||
color: #666666;
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -402,7 +402,7 @@ const handleConfigChange = () => {
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 20px 0;
|
||||
border-bottom: 1px solid var(--td-component-border);
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
@@ -417,14 +417,14 @@ const handleConfigChange = () => {
|
||||
label {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: var(--td-text-color-primary);
|
||||
color: #333333;
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-size: 13px;
|
||||
color: var(--td-text-color-secondary);
|
||||
color: #666666;
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -441,9 +441,9 @@ const handleConfigChange = () => {
|
||||
.subsection {
|
||||
padding: 16px 20px;
|
||||
margin: 12px 0 0 0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
background: #f8fafb;
|
||||
border-radius: 8px;
|
||||
border-left: 3px solid var(--td-brand-color);
|
||||
border-left: 3px solid #07C05F;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
@@ -457,20 +457,20 @@ const handleConfigChange = () => {
|
||||
h4 {
|
||||
font-size: 15px;
|
||||
font-weight: 600;
|
||||
color: var(--td-text-color-primary);
|
||||
color: #333333;
|
||||
margin: 0;
|
||||
padding-left: 8px;
|
||||
border-left: 2px solid var(--td-brand-color);
|
||||
border-left: 2px solid #07C05F;
|
||||
|
||||
.required {
|
||||
color: var(--td-error-color);
|
||||
color: #e34d59;
|
||||
margin-left: 4px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.required {
|
||||
color: var(--td-error-color);
|
||||
color: #e34d59;
|
||||
margin-left: 2px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@@ -131,13 +131,13 @@ const handleDescriptionChange = () => {
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: var(--td-text-color-primary);
|
||||
color: #333333;
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.section-description {
|
||||
font-size: 14px;
|
||||
color: var(--td-text-color-secondary);
|
||||
color: #666666;
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -154,7 +154,7 @@ const handleDescriptionChange = () => {
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 20px 0;
|
||||
border-bottom: 1px solid var(--td-component-border);
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
@@ -169,19 +169,19 @@ const handleDescriptionChange = () => {
|
||||
label {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: var(--td-text-color-primary);
|
||||
color: #333333;
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
|
||||
.required {
|
||||
color: var(--td-error-color);
|
||||
color: #fa5151;
|
||||
margin-left: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-size: 13px;
|
||||
color: var(--td-text-color-secondary);
|
||||
color: #666666;
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@@ -149,13 +149,13 @@ const emitUpdate = () => {
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: var(--td-text-color-primary);
|
||||
color: #333333;
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.section-description {
|
||||
font-size: 14px;
|
||||
color: var(--td-text-color-secondary);
|
||||
color: #666666;
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -172,7 +172,7 @@ const emitUpdate = () => {
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 20px 0;
|
||||
border-bottom: 1px solid var(--td-component-border);
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
@@ -187,14 +187,14 @@ const emitUpdate = () => {
|
||||
label {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: var(--td-text-color-primary);
|
||||
color: #333333;
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-size: 13px;
|
||||
color: var(--td-text-color-secondary);
|
||||
color: #666666;
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -218,7 +218,7 @@ const emitUpdate = () => {
|
||||
|
||||
.value-display {
|
||||
font-size: 14px;
|
||||
color: var(--td-text-color-primary);
|
||||
color: #333333;
|
||||
font-weight: 500;
|
||||
min-width: 80px;
|
||||
text-align: right;
|
||||
|
||||
@@ -150,13 +150,13 @@ const handleAddModel = (subSection: string) => {
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: var(--td-text-color-primary);
|
||||
color: #333333;
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.section-description {
|
||||
font-size: 14px;
|
||||
color: var(--td-text-color-secondary);
|
||||
color: #666666;
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -173,7 +173,7 @@ const handleAddModel = (subSection: string) => {
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 20px 0;
|
||||
border-bottom: 1px solid var(--td-component-border);
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
@@ -188,19 +188,19 @@ const handleAddModel = (subSection: string) => {
|
||||
label {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: var(--td-text-color-primary);
|
||||
color: #333333;
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
|
||||
.required {
|
||||
color: var(--td-error-color);
|
||||
color: #fa5151;
|
||||
margin-left: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-size: 13px;
|
||||
color: var(--td-text-color-secondary);
|
||||
color: #666666;
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user