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
@@ -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;
}