feat(colors): optional raw calendar colours + readable title contrast
Add a "Soften calendar colours" setting (Settings → Design, default on). Turning it off paints calendar and event colours raw, exactly as the sync source (DAVx5/CalDAV) publishes them, instead of the theme-fitting pastels (#36). Event/calendar colours now flow through shared eventFill()/eventInk() helpers gated by a LocalSoftenColors composition local (widgets read the pref directly). Event titles pick black or white text by the fill's WCAG relative luminance, so a dark colour stays legible whether softened or raw (#21) — previously always near-black. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -293,6 +293,8 @@
|
||||
<string name="settings_default_view">Default view</string>
|
||||
<string name="settings_dynamic_color">Dynamic colour</string>
|
||||
<string name="settings_dynamic_color_unavailable">Requires Android 12 or newer</string>
|
||||
<string name="settings_soften_colors">Soften calendar colours</string>
|
||||
<string name="settings_soften_colors_summary">Tone calendar and event colours down to fit the theme. Turn off to show the raw colours from the calendar source.</string>
|
||||
<string name="settings_font_headings">Headings font</string>
|
||||
<string name="settings_font_body">Body font</string>
|
||||
<string name="settings_font_system">System default</string>
|
||||
|
||||
Reference in New Issue
Block a user