From c04f850b1663fe1a5f6460716fcde2fa81fa34df Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Wed, 28 Oct 2026 04:45:59 +0100 Subject: [PATCH] fix: use theme colours for folder icons, stars and contact form errors instead of fixed blue, amber and pink --- components/contacts/contact-form.tsx | 16 +++++++++------- components/contacts/contact-group-form.tsx | 2 +- components/files/file-details-panel.tsx | 2 +- components/files/file-icons.tsx | 2 +- components/files/file-picker-dialog.tsx | 4 ++-- components/files/file-views.tsx | 4 ++-- components/files/files-app.tsx | 2 +- components/files/files-sidebar.tsx | 2 +- 8 files changed, 18 insertions(+), 16 deletions(-) diff --git a/components/contacts/contact-form.tsx b/components/contacts/contact-form.tsx index 6543febe6..df0b837e5 100644 --- a/components/contacts/contact-form.tsx +++ b/components/contacts/contact-form.tsx @@ -698,7 +698,7 @@ export function ContactForm({ contact, addressBooks, allKeywords, defaultAddress
{error && ( -
+
{error}
)} @@ -716,6 +716,8 @@ export function ContactForm({ contact, addressBooks, allKeywords, defaultAddress name={previewName || undefined} email={previewEmail || undefined} contactPhoto={previewPhoto} + // Nothing typed yet: a neutral circle, not a coloured "?". + fallbackColor={previewName || previewEmail ? undefined : "var(--color-muted-foreground)"} size="lg" className="!w-20 !h-20 !text-xl" /> @@ -737,7 +739,7 @@ export function ContactForm({ contact, addressBooks, allKeywords, defaultAddress

{t("photo_hint")}

{photoError && ( -

{photoError}

+

{photoError}

)} {previewPhoto && (
setGivenName(e.target.value)} placeholder={t("given_name")} autoFocus />
setSurname(e.target.value)} placeholder={t("surname")} />
@@ -869,7 +871,7 @@ export function ContactForm({ contact, addressBooks, allKeywords, defaultAddress }} onBlur={() => handleEmailBlur(i, entry.address)} placeholder={t("email_placeholder")} - className={cn("flex-1", emailErrors[i] && "border-red-500 focus:ring-red-500")} + className={cn("flex-1", emailErrors[i] && "border-destructive focus-visible:border-destructive")} />