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:
@@ -604,13 +604,13 @@ onMounted(async () => {
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.section-description {
|
||||
font-size: 14px;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -627,7 +627,7 @@ onMounted(async () => {
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 20px 0;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
border-bottom: 1px solid var(--td-component-stroke);
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
@@ -652,14 +652,14 @@ onMounted(async () => {
|
||||
label {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-size: 13px;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -698,10 +698,10 @@ onMounted(async () => {
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 13px;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
|
||||
.tip-icon {
|
||||
color: #0052d9;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -713,8 +713,8 @@ onMounted(async () => {
|
||||
}
|
||||
|
||||
.node-item {
|
||||
background: #f8fafb;
|
||||
border: 1px solid #e5e7eb;
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-radius: 8px;
|
||||
padding: 16px;
|
||||
}
|
||||
@@ -727,7 +727,7 @@ onMounted(async () => {
|
||||
|
||||
.node-icon {
|
||||
font-size: 20px;
|
||||
color: #0052d9;
|
||||
color: var(--td-brand-color);
|
||||
}
|
||||
|
||||
.node-name-input {
|
||||
@@ -768,8 +768,8 @@ onMounted(async () => {
|
||||
align-items: center;
|
||||
gap: 12px;
|
||||
padding: 12px;
|
||||
background: #f8fafb;
|
||||
border: 1px solid #e5e7eb;
|
||||
background: var(--td-bg-color-container);
|
||||
border: 1px solid var(--td-component-stroke);
|
||||
border-radius: 8px;
|
||||
|
||||
.relation-select {
|
||||
@@ -778,7 +778,7 @@ onMounted(async () => {
|
||||
}
|
||||
|
||||
.relation-arrow {
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
font-size: 16px;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -168,13 +168,13 @@ const handleAddModel = (subSection: string) => {
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.section-description {
|
||||
font-size: 14px;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -191,7 +191,7 @@ const handleAddModel = (subSection: string) => {
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 20px 0;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
border-bottom: 1px solid var(--td-component-stroke);
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
@@ -206,21 +206,21 @@ const handleAddModel = (subSection: string) => {
|
||||
label {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-size: 13px;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.hint {
|
||||
font-size: 12px;
|
||||
color: #999999;
|
||||
color: var(--td-text-color-placeholder);
|
||||
margin: 6px 0 0 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -237,14 +237,14 @@ const handleAddModel = (subSection: string) => {
|
||||
.subsection {
|
||||
padding: 16px 20px;
|
||||
margin: 12px 0 0 0;
|
||||
background: #f8fafb;
|
||||
background: var(--td-bg-color-container);
|
||||
border-radius: 8px;
|
||||
border-left: 3px solid #07C05F;
|
||||
border-left: 3px solid var(--td-brand-color);
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.required {
|
||||
color: #e34d59;
|
||||
color: var(--td-error-color);
|
||||
margin-left: 2px;
|
||||
font-weight: 500;
|
||||
}
|
||||
|
||||
@@ -219,13 +219,13 @@ const emitUpdate = () => {
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.section-description {
|
||||
font-size: 14px;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -242,7 +242,7 @@ const emitUpdate = () => {
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 20px 0;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
border-bottom: 1px solid var(--td-component-stroke);
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
@@ -257,14 +257,14 @@ const emitUpdate = () => {
|
||||
label {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-size: 13px;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -288,7 +288,7 @@ const emitUpdate = () => {
|
||||
|
||||
.value-display {
|
||||
font-size: 14px;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
font-weight: 500;
|
||||
min-width: 80px;
|
||||
text-align: right;
|
||||
|
||||
@@ -122,13 +122,13 @@ const handleAddModel = (subSection: string) => {
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.section-description {
|
||||
font-size: 14px;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -145,7 +145,7 @@ const handleAddModel = (subSection: string) => {
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 20px 0;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
border-bottom: 1px solid var(--td-component-stroke);
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
@@ -160,19 +160,19 @@ const handleAddModel = (subSection: string) => {
|
||||
label {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #333333;
|
||||
color: var(--td-text-color-primary);
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
|
||||
.required {
|
||||
color: #fa5151;
|
||||
color: var(--td-error-color);
|
||||
margin-left: 2px;
|
||||
}
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-size: 13px;
|
||||
color: #666666;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
@@ -275,13 +275,13 @@ watch(() => props.parserEngineRules, (v) => {
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.section-description {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -296,7 +296,7 @@ watch(() => props.parserEngineRules, (v) => {
|
||||
|
||||
.empty-hint {
|
||||
padding: 24px 0;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
|
||||
.settings-group {
|
||||
@@ -310,7 +310,7 @@ watch(() => props.parserEngineRules, (v) => {
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 20px 0;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
border-bottom: 1px solid var(--td-component-stroke);
|
||||
|
||||
&:last-child {
|
||||
border-bottom: none;
|
||||
@@ -330,14 +330,14 @@ watch(() => props.parserEngineRules, (v) => {
|
||||
|
||||
.group-icon {
|
||||
font-size: 18px;
|
||||
color: #555;
|
||||
color: var(--td-text-color-secondary);
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
label {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
@@ -353,8 +353,8 @@ watch(() => props.parserEngineRules, (v) => {
|
||||
display: inline-block;
|
||||
font-size: 12px;
|
||||
line-height: 1;
|
||||
color: #555;
|
||||
background: #f3f4f6;
|
||||
color: var(--td-text-color-secondary);
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
padding: 3px 8px;
|
||||
border-radius: 4px;
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
@@ -362,7 +362,7 @@ watch(() => props.parserEngineRules, (v) => {
|
||||
|
||||
.desc {
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -382,11 +382,11 @@ watch(() => props.parserEngineRules, (v) => {
|
||||
gap: 4px;
|
||||
margin-top: 8px;
|
||||
font-size: 12px;
|
||||
color: #e37318;
|
||||
color: var(--td-warning-color);
|
||||
line-height: 1.4;
|
||||
|
||||
.go-settings {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
cursor: pointer;
|
||||
white-space: nowrap;
|
||||
text-decoration: none;
|
||||
@@ -414,23 +414,23 @@ watch(() => props.parserEngineRules, (v) => {
|
||||
.engine-option-name {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
|
||||
}
|
||||
|
||||
.engine-option-desc {
|
||||
font-size: 12px;
|
||||
color: #888;
|
||||
color: var(--td-text-color-placeholder);
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
.engine-option-reason {
|
||||
font-size: 12px;
|
||||
color: #e34d59;
|
||||
color: var(--td-error-color);
|
||||
line-height: 1.4;
|
||||
|
||||
.go-settings {
|
||||
color: #07C05F;
|
||||
color: var(--td-brand-color);
|
||||
cursor: pointer;
|
||||
margin-left: 4px;
|
||||
font-size: 12px;
|
||||
|
||||
@@ -317,14 +317,14 @@ onMounted(async () => {
|
||||
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;
|
||||
}
|
||||
}
|
||||
@@ -332,7 +332,7 @@ onMounted(async () => {
|
||||
.share-form {
|
||||
margin-bottom: 24px;
|
||||
padding-bottom: 24px;
|
||||
border-bottom: 1px solid #f0f0f0;
|
||||
border-bottom: 1px solid var(--td-bg-color-secondarycontainer);
|
||||
}
|
||||
|
||||
.form-item {
|
||||
@@ -342,13 +342,13 @@ onMounted(async () => {
|
||||
font-family: "PingFang SC";
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #000000e6;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.form-tip {
|
||||
margin-top: 8px;
|
||||
font-size: 12px;
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-placeholder);
|
||||
line-height: 18px;
|
||||
}
|
||||
}
|
||||
@@ -384,15 +384,15 @@ onMounted(async () => {
|
||||
font-family: "PingFang SC";
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #000000e6;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
|
||||
.shares-count {
|
||||
padding: 2px 8px;
|
||||
background: #f5f5f5;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 10px;
|
||||
font-size: 12px;
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-placeholder);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -402,7 +402,7 @@ onMounted(async () => {
|
||||
justify-content: center;
|
||||
gap: 8px;
|
||||
padding: 32px;
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-placeholder);
|
||||
font-size: 14px;
|
||||
}
|
||||
|
||||
@@ -413,9 +413,9 @@ onMounted(async () => {
|
||||
justify-content: center;
|
||||
gap: 12px;
|
||||
padding: 40px 20px;
|
||||
background: #fafafa;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 8px;
|
||||
color: #00000066;
|
||||
color: var(--td-text-color-placeholder);
|
||||
|
||||
.empty-icon {
|
||||
font-size: 32px;
|
||||
@@ -436,14 +436,14 @@ onMounted(async () => {
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 14px 16px;
|
||||
background: #fafafa;
|
||||
border: 1px solid #f0f0f0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border: 1px solid var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 8px;
|
||||
transition: background 0.2s ease, border-color 0.2s ease;
|
||||
|
||||
&:hover {
|
||||
background: #f5f5f5;
|
||||
border-color: #e8e8e8;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-color: var(--td-component-stroke);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -468,7 +468,7 @@ onMounted(async () => {
|
||||
font-family: "PingFang SC";
|
||||
font-size: 14px;
|
||||
font-weight: 500;
|
||||
color: #000000e6;
|
||||
color: var(--td-text-color-primary);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -477,21 +477,21 @@ onMounted(async () => {
|
||||
align-items: center;
|
||||
gap: 6px;
|
||||
font-size: 12px;
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-secondary);
|
||||
|
||||
.org-meta-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 2px 6px;
|
||||
background: #f0f0f0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.org-meta-icon {
|
||||
flex-shrink: 0;
|
||||
vertical-align: middle;
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
|
||||
.org-meta-icon-user {
|
||||
@@ -524,14 +524,14 @@ onMounted(async () => {
|
||||
display: flex;
|
||||
gap: 12px;
|
||||
padding: 16px;
|
||||
background: #f0f7ff;
|
||||
background: var(--td-brand-color-light);
|
||||
border-radius: 8px;
|
||||
border: 1px solid #e6f0ff;
|
||||
border: 1px solid var(--td-brand-color-focus);
|
||||
|
||||
.tip-icon {
|
||||
flex-shrink: 0;
|
||||
font-size: 16px;
|
||||
color: #0052d9;
|
||||
color: var(--td-brand-color);
|
||||
margin-top: 2px;
|
||||
}
|
||||
|
||||
@@ -541,7 +541,7 @@ onMounted(async () => {
|
||||
p {
|
||||
margin: 0 0 4px 0;
|
||||
font-size: 13px;
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-secondary);
|
||||
line-height: 20px;
|
||||
|
||||
&:last-child {
|
||||
@@ -563,7 +563,7 @@ onMounted(async () => {
|
||||
|
||||
:deep(.t-select-option:hover),
|
||||
:deep(.t-select-option.t-is-selected) {
|
||||
background: #f0f7ff;
|
||||
background: var(--td-brand-color-light);
|
||||
}
|
||||
|
||||
:deep(.t-select-option__content) {
|
||||
@@ -601,7 +601,7 @@ onMounted(async () => {
|
||||
font-family: "PingFang SC";
|
||||
font-size: 13px;
|
||||
font-weight: 500;
|
||||
color: #000000e6;
|
||||
color: var(--td-text-color-primary);
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
@@ -614,21 +614,21 @@ onMounted(async () => {
|
||||
gap: 6px;
|
||||
font-family: "PingFang SC";
|
||||
font-size: 12px;
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-secondary);
|
||||
|
||||
.org-meta-tag {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 3px;
|
||||
padding: 0px 4px;
|
||||
background: #f0f0f0;
|
||||
background: var(--td-bg-color-secondarycontainer);
|
||||
border-radius: 4px;
|
||||
}
|
||||
|
||||
.org-meta-icon {
|
||||
flex-shrink: 0;
|
||||
vertical-align: middle;
|
||||
color: #00000099;
|
||||
color: var(--td-text-color-secondary);
|
||||
}
|
||||
|
||||
.org-meta-icon-user {
|
||||
@@ -655,7 +655,7 @@ onMounted(async () => {
|
||||
max-height: 320px;
|
||||
overflow-y: auto;
|
||||
border-radius: 6px;
|
||||
box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
|
||||
box-shadow: var(--td-shadow-2);
|
||||
}
|
||||
|
||||
.org-select-dropdown-popup .t-select-option {
|
||||
|
||||
@@ -166,13 +166,13 @@ onMounted(load)
|
||||
h2 {
|
||||
font-size: 20px;
|
||||
font-weight: 600;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
margin: 0 0 8px 0;
|
||||
}
|
||||
|
||||
.section-description {
|
||||
font-size: 14px;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -195,7 +195,7 @@ onMounted(load)
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
padding: 20px 0;
|
||||
border-bottom: 1px solid #e5e7eb;
|
||||
border-bottom: 1px solid var(--td-component-stroke);
|
||||
}
|
||||
|
||||
.setting-info {
|
||||
@@ -206,14 +206,14 @@ onMounted(load)
|
||||
label {
|
||||
font-size: 15px;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
color: var(--td-text-color-primary);
|
||||
display: block;
|
||||
margin-bottom: 4px;
|
||||
}
|
||||
|
||||
.desc {
|
||||
font-size: 13px;
|
||||
color: #666;
|
||||
color: var(--td-text-color-secondary);
|
||||
margin: 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
@@ -236,12 +236,12 @@ onMounted(load)
|
||||
|
||||
.option-hint {
|
||||
font-size: 12px;
|
||||
color: #999;
|
||||
color: var(--td-text-color-placeholder);
|
||||
margin: 0;
|
||||
line-height: 1.4;
|
||||
|
||||
&.locked-hint {
|
||||
color: #e6a23c;
|
||||
color: var(--td-warning-color);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user