feat: 新增5种主题风格 + 风格快速切换按钮

新增主题:
- cherry 樱花粉:甜美可爱
- midnight 午夜:深紫高端
- gold 金色:奢华典雅
- coral 珊瑚:时尚活泼
- mint 薄荷:清新凉爽

UI改进:
- 在图表展示区下方添加15种风格快速切换按钮
- 每个按钮带渐变色预览,点击即切换
- 图表模式和表格模式都支持全部15种主题
- 下拉框和按钮状态双向同步
This commit is contained in:
2026-07-17 13:10:03 +08:00
parent 13abdea15b
commit 3833742d4d
4 changed files with 260 additions and 6 deletions
+70
View File
@@ -457,3 +457,73 @@ input[type="range"]::-moz-range-thumb {
border: none;
box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}
/* ===== 风格快速切换按钮区 ===== */
.theme-buttons-section {
margin-top: 16px;
background: var(--panel-bg);
border-radius: var(--radius);
padding: 16px 20px;
box-shadow: var(--shadow);
border: 1px solid var(--border);
}
.theme-buttons-section h3 {
font-size: 0.95rem;
margin-bottom: 12px;
color: var(--text);
display: flex;
align-items: center;
gap: 6px;
}
.theme-buttons-grid {
display: flex;
flex-wrap: wrap;
gap: 10px;
}
.theme-btn {
display: flex;
flex-direction: column;
align-items: center;
gap: 6px;
padding: 8px 12px;
border: 2px solid var(--border);
border-radius: 10px;
background: white;
cursor: pointer;
transition: all 0.2s;
min-width: 72px;
}
.theme-btn:hover {
border-color: var(--primary);
transform: translateY(-2px);
box-shadow: var(--shadow);
}
.theme-btn.active {
border-color: var(--primary);
background: rgba(79, 70, 229, 0.05);
box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}
.theme-preview {
display: block;
width: 40px;
height: 28px;
border-radius: 6px;
box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}
.theme-name {
font-size: 0.75rem;
color: var(--text-light);
font-weight: 500;
}
.theme-btn.active .theme-name {
color: var(--primary);
font-weight: 600;
}