From d24b917c22dad45f17bf234e337ff4d7512cc859 Mon Sep 17 00:00:00 2001 From: Linus Rath <139418639+rathlinus@users.noreply.github.com> Date: Wed, 28 Oct 2026 04:43:56 +0100 Subject: [PATCH] fix: use the app's selection colour in Files and the vertical More icon in Contacts and Files --- components/contacts/contact-detail.tsx | 4 ++-- components/files/file-picker-dialog.tsx | 2 +- components/files/file-views.tsx | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/components/contacts/contact-detail.tsx b/components/contacts/contact-detail.tsx index 91a35b2a8..bf2e8cef5 100644 --- a/components/contacts/contact-detail.tsx +++ b/components/contacts/contact-detail.tsx @@ -3,7 +3,7 @@ import { useState, useEffect, useRef, useMemo } from "react"; import { useLocale, useTranslations } from "next-intl"; import { contactDateParts, formatContactDate } from "@/lib/contact-dates"; -import { Mail, Phone, Building, MapPin, StickyNote, Pencil, Trash2, BookUser, Copy, Send, Globe, Cake, KeyRound, Users, Briefcase, Heart, Languages, Calendar, UserCircle, Download, MoreHorizontal, Printer, FolderInput } from "@/components/icons"; +import { Mail, Phone, Building, MapPin, StickyNote, Pencil, Trash2, BookUser, Copy, Send, Globe, Cake, KeyRound, Users, Briefcase, Heart, Languages, Calendar, UserCircle, Download, MoreVertical, Printer, FolderInput } from "@/components/icons"; import { Avatar } from "@/components/ui/avatar"; import { MailtoLink } from "@/components/ui/mailto-link"; import { Button } from "@/components/ui/button"; @@ -563,7 +563,7 @@ function MoreActionsMenu({ items, label }: { items: MoreItem[]; label: string }) aria-expanded={open} className="touch-manipulation" > - + {open && (
toggle(node)} className={cn( "w-full flex items-center gap-3 px-3 py-2 rounded-md text-start text-sm transition-colors", - checked ? "bg-primary/10" : "hover:bg-muted", + checked ? "bg-selection" : "hover:bg-muted", )} > e.stopPropagation()} className="text-muted-foreground hover:text-foreground" > - +
@@ -395,7 +395,7 @@ function FolderTile({ resource, isSelected, isFocused, isDropTarget, isCut, isSt {...touchProps} className={cn( "group relative flex items-center gap-2.5 h-11 ps-3 pe-1 rounded-lg border cursor-default select-none transition-colors", - isSelected ? "border-primary/60 bg-primary/10" : isDropTarget ? "border-primary bg-primary/10" : "border-border bg-background hover:bg-muted/60", + isSelected ? "border-primary/60 bg-selection" : isDropTarget ? "border-primary bg-primary/10" : "border-border bg-background hover:bg-muted/60", isFocused && "ring-2 ring-ring/50", isCut && "opacity-50", )} @@ -425,7 +425,7 @@ function FolderTile({ resource, isSelected, isFocused, isDropTarget, isCut, isSt onDoubleClick={(e) => e.stopPropagation()} className={cn("text-muted-foreground hover:text-foreground", !touch && "opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100")} > - + ); @@ -447,7 +447,7 @@ function FileTile({ resource, isSelected, isFocused, isCut, selecting, touch, ic {...touchProps} className={cn( "group relative flex flex-col rounded-lg border overflow-hidden cursor-default select-none transition-colors", - isSelected ? "border-primary/60 bg-primary/10" : "border-border bg-background hover:bg-muted/60", + isSelected ? "border-primary/60 bg-selection" : "border-border bg-background hover:bg-muted/60", isFocused && "ring-2 ring-ring/50", isCut && "opacity-50", )} @@ -494,7 +494,7 @@ function FileTile({ resource, isSelected, isFocused, isCut, selecting, touch, ic onDoubleClick={(e) => e.stopPropagation()} className={cn("text-muted-foreground hover:text-foreground shrink-0", !touch && "opacity-0 group-hover:opacity-100 group-focus-within:opacity-100 focus-visible:opacity-100")} > - +