Repository navigation
Stop a re-edited caption from drawing twice, and add colour - #18
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 byvisibleShapes) and returns when the edit lands.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/⇧ccopy the colour under the pointerc→#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.