diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-08 01:14:09 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-08 01:14:09 -0500 |
| commit | 4fa5e99583b8285117b9fea5da4260fd853d98ae (patch) | |
| tree | 59d6eaca0ebfaaeabbcd858246f52c4a3ad710da /modules/custom-datetime.el | |
| parent | 72265d7225296b81b871e25961968c8918284840 (diff) | |
| download | dotemacs-4fa5e99583b8285117b9fea5da4260fd853d98ae.tar.gz dotemacs-4fa5e99583b8285117b9fea5da4260fd853d98ae.zip | |
feat(theme-selector): custom in-page color picker
I replaced the native OS color swatch with an in-page picker, since the native one couldn't be sized or restyled and had no clean way to apply and dismiss. Clicking the swatch opens a popup with a saturation/value square and a hue slider you drag, a live hex plus AAA/AA/FAIL contrast readout, and the current palette as clickable chips for grabbing an exact existing color. It writes to the hex field, so add and update work unchanged, and it closes on click-away or when you commit a color.
The HSV math is self-contained and the contrast readout reuses the existing helpers, so there's no dependency. A hash-guarded #pick hook opens the picker for headless screenshot verification, the same pattern as the #selftest harness.
Diffstat (limited to 'modules/custom-datetime.el')
0 files changed, 0 insertions, 0 deletions
