feat(theme): 重构主题系统,新增 glass-pill 按钮样式

- ThemeConfig 接口扩展至 60+ 语义化属性
- 新增深浅主题预设 (glassPill overrides)
- button-group 支持 glass-pill 样式变体
- 默认主题改为浅色
- 移除 toolbar 容器硬编码定位
- 统一组件 CSS 变量命名规范
- 暂时隐藏下拉箭头
This commit is contained in:
yuding
2026-01-21 15:50:07 +08:00
parent 8d027419e4
commit 19f7e3ffbc
34 changed files with 6840 additions and 4706 deletions

View File

@@ -213,16 +213,13 @@ export class BimCollapse implements IBimComponent {
public setTheme(theme: ThemeConfig): void {
const style = this.element.style;
style.setProperty('--bim-bg-color', theme.panelBackground);
style.setProperty('--bim-border-color', theme.border);
style.setProperty('--bim-bg-color', theme.bgElevated);
style.setProperty('--bim-border-color', theme.borderDefault);
style.setProperty('--bim-text-color', theme.textPrimary);
// 头部默认背景色使用 componentBackground
style.setProperty('--bim-header-bg-color', theme.componentHover);
style.setProperty('--bim-header-hover-bg-color', theme.componentHover);
style.setProperty('--bim-content-bg-color', theme.panelBackground);
style.setProperty('--bim-disabled-color', theme.textSecondary);
style.setProperty('--bim-header-bg-color', theme.componentBgHover);
style.setProperty('--bim-header-hover-bg-color', theme.componentBgActive);
style.setProperty('--bim-content-bg-color', theme.bgElevated);
style.setProperty('--bim-disabled-color', theme.textDisabled);
}
public setLocales(): void {