diff --git a/artifacts/tx-os/src/components/notes/incoming-note-popup.tsx b/artifacts/tx-os/src/components/notes/incoming-note-popup.tsx index 19fef94a..f29ba729 100644 --- a/artifacts/tx-os/src/components/notes/incoming-note-popup.tsx +++ b/artifacts/tx-os/src/components/notes/incoming-note-popup.tsx @@ -13,6 +13,10 @@ import { Button } from "@/components/ui/button"; import { colorBg, colorAccent, + colorRingStrong, + colorAvatarBg, + colorAvatarRing, + colorPing, useMarkNoteRead, useToggleChecklistItem, userDisplayName, @@ -342,6 +346,16 @@ export function IncomingNotePopup() { if (!current) return null; + // Task #468: derive every accent class from the note's own color so + // the popup looks like an extension of the note (pink note → pink + // ring + pink ping + pink avatar tint, etc.) instead of the previous + // fixed amber chrome that clashed with non-amber notes. + const noteColor = current.color; + const ringClass = colorRingStrong(noteColor); + const avatarBgClass = colorAvatarBg(noteColor); + const avatarRingClass = colorAvatarRing(noteColor); + const pingClass = colorPing(noteColor); + const acknowledge = () => { // Only the recipient (note variant) marks-as-read. The reply // variant goes to the *original sender* (note owner), who can't @@ -464,10 +478,10 @@ export function IncomingNotePopup() { }} >
@@ -488,17 +502,17 @@ export function IncomingNotePopup() { />