[feat] Add theme-aware colors to minimap (#4598)

This commit is contained in:
Christian Byrne
2025-07-30 12:41:02 -07:00
committed by GitHub
parent efb08bf2ba
commit fe475403b0
2 changed files with 30 additions and 14 deletions

View File

@@ -112,6 +112,14 @@ vi.mock('@/stores/settingStore', () => ({
useSettingStore: vi.fn(() => defaultSettingStore)
}))
vi.mock('@/stores/workspace/colorPaletteStore', () => ({
useColorPaletteStore: vi.fn(() => ({
completedActivePalette: {
light_theme: false
}
}))
}))
vi.mock('@/scripts/api', () => ({
api: {
addEventListener: vi.fn(),
@@ -753,7 +761,7 @@ describe('useMinimap', () => {
})
describe('container styles', () => {
it('should provide correct container styles', () => {
it('should provide correct container styles for dark theme', () => {
const minimap = useMinimap()
const styles = minimap.containerStyles.value