chore(web): migrate CircleIconButton to @immich/ui IconButton (#18486)

* 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>
This commit is contained in:
Brandon Wees 2025-06-02 09:47:23 -05:00 committed by GitHub
parent d544053c67
commit a02e1f5e7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
75 changed files with 822 additions and 556 deletions

View file

@ -1,6 +1,6 @@
<script lang="ts">
import CircleIconButton from '$lib/components/elements/buttons/circle-icon-button.svelte';
import Icon from '$lib/components/elements/icon.svelte';
import { IconButton } from '@immich/ui';
import { mdiArrowUpLeft, mdiChevronRight } from '@mdi/js';
import { t } from 'svelte-i18n';
@ -19,12 +19,14 @@
<nav class="flex items-center py-2">
{#if !isRoot}
<div>
<CircleIconButton
<IconButton
shape="round"
color="secondary"
variant="ghost"
icon={mdiArrowUpLeft}
title={$t('to_parent')}
aria-label={$t('to_parent')}
href={getLink(pathSegments.slice(0, -1).join('/'))}
class="me-2"
padding="2"
onclick={() => {}}
/>
</div>
@ -35,12 +37,14 @@
>
<ol class="flex gap-2 items-center">
<li>
<CircleIconButton
<IconButton
shape="round"
color="secondary"
variant="ghost"
{icon}
href={getLink('')}
{title}
size="1.25em"
padding="2"
aria-label={title}
size="medium"
aria-current={isRoot ? 'page' : undefined}
onclick={() => {}}
/>