Fix unreadable event text when a calendar's color is white/very light
The month view rendered each event's text (and its little leading dot) in the calendar's own color, on a very lightly tinted (~13% opacity) background of that same color. For a light color like white or pale yellow, the text ended up effectively invisible against its own near-white background. internal/web/templates/calendar.templ: add eventTextColor(hex), which darkens colors above a perceived-luminance threshold (keeping the hue, e.g. white -> a mid gray, pale yellow -> olive) while leaving already- legible colors untouched; used for both the event text and its leading dot. Also add a subtle ring to the event dot and to the calendar legend's color swatch so a white/near-white swatch stays visible against the page's white background, independent of the text-color fix. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user