mirror of
https://github.com/storytold/deckcraft.git
synced 2026-10-29 04:56:58 -06:00
The caret was always stroked black. On a dark slide (the Nocturne theme, or any dark background with light text) it could not be seen. It is now drawn in the colour that text typed at the caret takes, and falls back to the theme token when that text has no fill. An empty placeholder showed no caret at all: its body holds no paragraph until something is typed, so the edit layout had no line for the caret to stand on. The edit layout now treats such a body as one empty paragraph, and the canvas leaves the placeholder's prompt out while it is being typed into, so the caret does not sit inside "Click to add title". Fixes #318.