mirror of
https://github.com/immich-app/immich.git
synced 2026-02-13 12:27:56 +03:00
* remove import and referenced file * first pass at replacing all CircleIconButtons * fix linting issues * fix combobox formatting issues * fix button context menu coloring * remove circle icon button from search history box * use theme switcher from UI lib * dark mode force the asset viewer icons * fix forced dark mode icons * dark mode memory viewer icons * fix: back button in memory viewer --------- Co-authored-by: Alex <alex.tran1502@gmail.com>
14 lines
380 B
Svelte
14 lines
380 B
Svelte
<script lang="ts">
|
|
import { Theme } from '$lib/constants';
|
|
import { themeManager } from '$lib/managers/theme-manager.svelte';
|
|
import { ThemeSwitcher } from '@immich/ui';
|
|
</script>
|
|
|
|
{#if !themeManager.theme.system}
|
|
<ThemeSwitcher
|
|
size="medium"
|
|
color="secondary"
|
|
onChange={(theme) => themeManager.setTheme(theme == 'dark' ? Theme.DARK : Theme.LIGHT)}
|
|
/>
|
|
{/if}
|