mirror of
https://github.com/immich-app/immich.git
synced 2026-04-17 08:01:55 -04: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>
25 lines
849 B
Svelte
25 lines
849 B
Svelte
<script lang="ts">
|
|
import { t } from 'svelte-i18n';
|
|
import { onMount } from 'svelte';
|
|
import { mdiCast, mdiCastConnected } from '@mdi/js';
|
|
import { CastDestinationType, castManager } from '$lib/managers/cast-manager.svelte';
|
|
import { GCastDestination } from '$lib/utils/cast/gcast-destination.svelte';
|
|
import { IconButton } from '@immich/ui';
|
|
|
|
onMount(async () => {
|
|
await castManager.initialize();
|
|
});
|
|
</script>
|
|
|
|
{#if castManager.availableDestinations.length > 0 && castManager.availableDestinations[0].type === CastDestinationType.GCAST}
|
|
<IconButton
|
|
shape="round"
|
|
variant="ghost"
|
|
size="medium"
|
|
color={castManager.isCasting ? 'primary' : 'secondary'}
|
|
icon={castManager.isCasting ? mdiCastConnected : mdiCast}
|
|
onclick={() => void GCastDestination.showCastDialog()}
|
|
aria-label={$t('cast')}
|
|
/>
|
|
{/if}
|