Skip to content

Stop a re-edited caption from drawing twice, and add colour - #18

Merged
ursasi merged 1 commit into
mainfrom
feat/annotation-colour-and-copy
Oct 26, 2026
Merged

ursasi merged 1 commit into
mainfrom
feat/annotation-colour-and-copy

Conversation

@ursasi

@ursasi ursasi commented Oct 26, 2026

Copy link
Copy Markdown
Owner

Two things reported together: a ghost when re-editing a caption, and two Snipaste habits worth having.

1. Double-click selection ghosted the text

Opening a caption for editing left the mark painted underneath the editor, so both copies were on screen at once. Overlapping type reads as a doubled, bolder glyph — Latin letters worst, because the overlap shifts by a fraction of a glyph.

The mark is suppressed while its editor is open (SnipSession.suppressedShape, honoured by visibleShapes) and returns when the edit lands.

check result
caption before double-click drawn once
same caption while editing drawn once, from the editor — no second copy underneath

2. Colour palette

A swatch in the bar (between the size control and undo) shows the current colour and opens a palette: 红 橙 黄 绿 蓝 紫 白 黑, ticked on the one in use. Picking a colour also recolours a caption being typed.

3. c / ⇧c copy the colour under the pointer

  • c → #090A09
  • ⇧c → rgb(9, 10, 9)

Both put it on the clipboard and show a short pill confirming it. Verified by reading the clipboard back after each key.

Double-clicking a caption to edit it left the mark painted underneath the
editor, so the two copies stacked into a doubled, bolder ghost — worst on Latin
letters, where the overlap shifts by a fraction of a glyph. The mark is hidden
while its editor is open and comes back when the edit lands.

Two things from Snipaste that were missing:

- A colour swatch in the bar opens a palette (red, orange, yellow, green, blue,
  purple, white, black) and always shows the colour in use.
- `c` copies the colour under the pointer as `#RRGGBB`, `⇧c` copies it as
  `rgb(r, g, b)`; a short pill confirms what went to the clipboard. The magnifier
  already showed the value, so this saves reading it off the screen by eye.
@ursasi
ursasi merged commit a6f6016 into main Oct 26, 2026
1 check passed
@ursasi
ursasi deleted the feat/annotation-colour-and-copy branch October 30, 2026 10:47
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.

1 participant