From d790384b72e7c11019316adec2a734488a746da3 Mon Sep 17 00:00:00 2001 From: amosblomqvist Date: Thu, 8 Oct 2026 19:13:54 +0300 Subject: [PATCH] =?UTF-8?q?ui:=20the=20invert=20disc's=20half=20is=20actua?= =?UTF-8?q?lly=20filled=20=E2=80=94=20and=20the=20demos=20match?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Lucide's Contrast leaves its half-moon unfilled (fill=none default) - the owner's catch. Hand-rolled InvertDiscIcon: same geometry, the half carries fill=currentColor, so the filled side is filled. The demo cards get the identical disc + 'Invert colors' tooltip on their invert toggles, matching the figures. --- components/artifacts/demo-card.tsx | 9 ++++++++- components/artifacts/invert-disc.tsx | 23 +++++++++++++++++++++++ components/artifacts/visual-card.tsx | 5 +++-- tests/demos.test.tsx | 6 ++++++ 4 files changed, 40 insertions(+), 3 deletions(-) create mode 100644 components/artifacts/invert-disc.tsx diff --git a/components/artifacts/demo-card.tsx b/components/artifacts/demo-card.tsx index 305ef4a..fd781e8 100644 --- a/components/artifacts/demo-card.tsx +++ b/components/artifacts/demo-card.tsx @@ -3,6 +3,7 @@ import { useContext, useEffect, useMemo, useRef, useState } from "react"; import { DownloadIcon } from "lucide-react"; import { Toggle } from "@/components/settings/controls"; +import { InvertDiscIcon } from "@/components/artifacts/invert-disc"; import { ChatActionsContext } from "@/components/chat"; import { downloadFile, slugFilename } from "@/components/artifacts/download"; import { DispatchCard } from "@/components/artifacts/dispatch-card"; @@ -181,7 +182,13 @@ function DemoFrame({ {title}
- + } + />