feat(tabbar): 自定义 tabbar 时,高亮颜色优先使用 var(--wot-color-theme)

This commit is contained in:
Utopia
2025-08-19 17:50:13 +08:00
parent d1c5124b82
commit e4c0923bd7

View File

@@ -50,7 +50,7 @@ onLoad(() => {
},
})
})
const activeColor = '#1890ff'
const activeColor = 'var(--wot-color-theme, #1890ff)'
const inactiveColor = '#666'
function getColorByIndex(index: number) {
return tabbarStore.curIdx === index ? activeColor : inactiveColor