From 2c53263a62ea828ac11480a5be8689d4f4224e8a Mon Sep 17 00:00:00 2001 From: Jinjing <6427696+AmethystLiang@users.noreply.github.com> Date: Thu, 4 Jun 2026 00:33:25 -0700 Subject: [PATCH] Match Linear priority icon colors (#4625) --- src/renderer/src/assets/main.css | 8 ++++ .../src/components/linear-priority-icon.tsx | 48 ++++++++++++------- 2 files changed, 40 insertions(+), 16 deletions(-) diff --git a/src/renderer/src/assets/main.css b/src/renderer/src/assets/main.css index cdd6eb0f9..d526fa1f5 100644 --- a/src/renderer/src/assets/main.css +++ b/src/renderer/src/assets/main.css @@ -250,6 +250,14 @@ --annotation-highlight: #fbbf24; } +.linear-priority-bars { + --linear-priority-bar-inactive-fill: color-mix(in srgb, lch(39.576 1.25 282) 34%, transparent); +} + +.dark .linear-priority-bars { + --linear-priority-bar-inactive-fill: color-mix(in srgb, lch(39.576 1.25 282) 62%, transparent); +} + /* ── Base Layer ──────────────────────────────────────── */ @layer base { diff --git a/src/renderer/src/components/linear-priority-icon.tsx b/src/renderer/src/components/linear-priority-icon.tsx index 0741343cc..468276230 100644 --- a/src/renderer/src/components/linear-priority-icon.tsx +++ b/src/renderer/src/components/linear-priority-icon.tsx @@ -2,7 +2,11 @@ import React from 'react' import { cn } from '@/lib/utils' -// Why: mirror Linear's priority glyph shape while keeping color on Orca tokens. +// Why: Linear priority glyphs are provider-brand signals, so their fills match +// Linear's lower-contrast icon colors instead of Orca's generic state tokens. +const LINEAR_PRIORITY_URGENT_FILL = 'lch(66 80 48)' +const LINEAR_PRIORITY_BAR_FILL = 'lch(39.576 1.25 282)' + const LINEAR_PRIORITY_ICON_LABELS: Record = { 0: 'No priority', 1: 'Urgent', @@ -41,9 +45,10 @@ export function LinearPriorityIcon({ return ( @@ -70,22 +75,33 @@ export function LinearPriorityIcon({ const activeBars = getLinearPriorityBarCount(priority) return ( - {[1, 2, 3].map((bar) => ( - )