Skip to content

fix: replace color-picker square glyph with a palette icon#287

Merged
sahil-noon merged 1 commit into
mainfrom
glossy-wisent
Jun 25, 2026
Merged

fix: replace color-picker square glyph with a palette icon#287
sahil-noon merged 1 commit into
mainfrom
glossy-wisent

Conversation

@sahil-noon

Copy link
Copy Markdown
Collaborator

Summary

The window color-picker trigger in the sidebar rendered a U+25A0 filled square () — the same glyph the media world uses for "stop," so it read as an action button rather than a color control. This replaces it with a hand-rolled PaletteIcon (an artist's palette with four paint blobs), matching the neighboring PinIcon's line-art style.

  • New PaletteIcon component in window-row.tsx, swapped in for the ■ glyph on the color-picker button. The aria-label ("Set color for …") and all opacity/hover/coarse:/focus-visible: classes are unchanged, so behavior, keyboard focus, and touch reveal are identical.
  • strokeWidth is set to 2 (not the lucide default 1.7) so the icon's effective stroke weight (~1.08px at 13px) matches the pin (~1.125px) — a thinner stroke reads as a lighter color even with the same currentColor token, so weight parity is what makes the cluster look uniform.
  • Paint blobs use stroke="none" pure fills so they read as dots, not stroked rings.

Verified: just check (tsc) clean; window-row.test.tsx 30/30 and full frontend unit suite 794/794 pass. Frontend-only, presentational change — no Go or API surface touched.

@sahil-noon sahil-noon marked this pull request as ready for review June 25, 2026 07:52
@sahil-noon sahil-noon requested a review from Copilot June 25, 2026 07:52

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Replaces the sidebar window color-picker trigger’s filled-square glyph (U+25A0) with a dedicated line-art PaletteIcon to better convey “color control” and visually match the neighboring PinIcon.

Changes:

  • Swap the color-picker trigger content from ■ to a new inline PaletteIcon SVG.
  • Add a new PaletteIcon component (13×13, strokeWidth={2}, filled paint blobs) with aria-hidden for decorative use.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@sahil-noon sahil-noon merged commit 81d2f5b into main Jun 25, 2026
6 checks passed
@sahil-noon sahil-noon deleted the glossy-wisent branch June 25, 2026 07:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants