feat: update theme and UI styles across components

- Refactored CSS variables for consistent theming, replacing hardcoded colors with CSS variables for better maintainability.
- Updated various components including `AgentAvatar`, `AgentSelector`, and `AgentShareSettings` to utilize new theme variables for colors, backgrounds, and shadows.
- Enhanced SVG icons to use `currentColor` for better adaptability to theme changes.
- Improved overall UI consistency by aligning styles with the new theming approach, enhancing user experience across the application.

These changes significantly improve the visual coherence and maintainability of the UI, ensuring a more seamless user experience.
This commit is contained in:
wizardchen
2026-03-05 11:19:36 +08:00
committed by lyingbug
parent 44f38ca6c3
commit dbc7c32874
95 changed files with 2544 additions and 2407 deletions
@@ -729,7 +729,7 @@ watch(
max-width: 1100px;
height: 85vh;
max-height: 750px;
background: #fff;
background: var(--td-bg-color-container);
border-radius: 12px;
box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
display: flex;
@@ -744,19 +744,19 @@ watch(
width: 32px;
height: 32px;
border: none;
background: #f5f5f5;
background: var(--td-bg-color-secondarycontainer);
border-radius: 6px;
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
color: #666;
color: var(--td-text-color-secondary);
transition: all 0.2s ease;
z-index: 10;
&:hover {
background: #e5e5e5;
color: #000;
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-primary);
}
}
@@ -768,8 +768,8 @@ watch(
.settings-sidebar {
width: 200px;
background: #fafafa;
border-right: 1px solid #e5e5e5;
background: var(--td-bg-color-settings-modal);
border-right: 1px solid var(--td-component-stroke);
display: flex;
flex-direction: column;
flex-shrink: 0;
@@ -777,7 +777,7 @@ watch(
.sidebar-header {
padding: 24px 20px;
border-bottom: 1px solid #e5e5e5;
border-bottom: 1px solid var(--td-component-stroke);
}
.sidebar-title {
@@ -785,7 +785,7 @@ watch(
font-family: "PingFang SC";
font-size: 18px;
font-weight: 600;
color: #000000e6;
color: var(--td-text-color-primary);
}
.settings-nav {
@@ -804,15 +804,16 @@ watch(
transition: all 0.2s ease;
font-family: "PingFang SC";
font-size: 14px;
color: #00000099;
color: var(--td-text-color-secondary);
&:hover {
background: #f0f0f0;
background: var(--td-bg-color-secondarycontainer-hover);
color: var(--td-text-color-primary);
}
&.active {
background: #07c05f1a;
color: #07c05f;
background: var(--td-brand-color-light);
color: var(--td-brand-color);
font-weight: 500;
}
}
@@ -861,19 +862,19 @@ watch(
font-family: "PingFang SC";
font-size: 16px;
font-weight: 600;
color: #000000e6;
color: var(--td-text-color-primary);
}
.section-desc {
margin: 0;
font-family: "PingFang SC";
font-size: 14px;
color: #00000066;
color: var(--td-text-color-placeholder);
line-height: 22px;
}
.section-body {
background: #fff;
background: var(--td-bg-color-container);
}
}
@@ -891,11 +892,11 @@ watch(
font-family: "PingFang SC";
font-size: 14px;
font-weight: 500;
color: #000000e6;
color: var(--td-text-color-primary);
&.required::after {
content: '*';
color: #FA5151;
color: var(--td-error-color);
margin-left: 4px;
}
}
@@ -903,22 +904,22 @@ watch(
.form-tip {
margin-top: 6px;
font-size: 12px;
color: #00000066;
color: var(--td-text-color-placeholder);
}
.faq-guide {
margin-top: 20px;
padding: 12px 16px;
border-radius: 8px;
background: #f5f5f5;
color: #00000099;
background: var(--td-bg-color-secondarycontainer);
color: var(--td-text-color-secondary);
font-size: 13px;
line-height: 20px;
}
.settings-footer {
padding: 16px 32px;
border-top: 1px solid #e5e5e5;
border-top: 1px solid var(--td-component-stroke);
display: flex;
justify-content: flex-end;
gap: 12px;
@@ -943,41 +944,41 @@ watch(
// Radio-group 样式优化,符合项目主题风格
:deep(.t-radio-group) {
.t-radio-group--filled {
background: #f5f5f5;
background: var(--td-bg-color-secondarycontainer);
}
.t-radio-button {
border-color: #d9d9d9;
// color: #00000099;
border-color: var(--td-component-stroke);
// color: var(--td-text-color-placeholder);
&:hover:not(.t-is-disabled) {
border-color: #07c05f;
color: #07c05f;
border-color: var(--td-brand-color);
color: var(--td-brand-color);
}
&.t-is-checked {
background: #07c05f;
border-color: #07c05f;
color: #fff;
background: var(--td-brand-color);
border-color: var(--td-brand-color);
color: var(--td-text-color-anti);
&:hover:not(.t-is-disabled) {
background: #05a04f;
border-color: #05a04f;
color: #fff;
background: var(--td-brand-color-active);
border-color: var(--td-brand-color-active);
color: var(--td-text-color-anti);
}
}
// 禁用状态样式
&.t-is-disabled {
background: #f5f5f5;
border-color: #d9d9d9;
color: #00000040;
background: var(--td-bg-color-secondarycontainer);
border-color: var(--td-component-stroke);
color: var(--td-text-color-disabled);
cursor: not-allowed;
opacity: 0.6;
&.t-is-checked {
background: #f0f0f0;
border-color: #d9d9d9;
color: #00000066;
background: var(--td-bg-color-secondarycontainer);
border-color: var(--td-component-stroke);
color: var(--td-text-color-placeholder);
}
}
}