Skip to content

Cards: opaque fill for done tasks and muted memos so the shadow ring stops showing through - #128

Merged
mapgie merged 1 commit into
mainfrom
claude/borders-styling-q8pxk1
Sep 9, 2026
Merged

Cards: opaque fill for done tasks and muted memos so the shadow ring stops showing through#128
mapgie merged 1 commit into
mainfrom
claude/borders-styling-q8pxk1

Conversation

@mapgie

@mapgie mapgie commented Sep 9, 2026

Copy link
Copy Markdown
Owner

What

Done tasks and done/archived memos showed a thick grey border around a paler, smaller-radius inner rectangle in light mode. Active cards were fine.

Why

Both muted cards used surfaceVariant.copy(alpha = 0.6f) as the container of a Card that still carries 1dp elevation in light mode. HWUI draws an elevated node's shadow as a ring with an unfilled umbra, assuming the caster is opaque. Through a 60% fill the ring shows around the edge and the unfilled middle shows only the pale blend, which reads as a grey frame around an inset panel.

Change

  • New ui/theme/CardColors.kt with mutedCardContainer(): the same 60% surfaceVariant blend, composited over colorScheme.background into an opaque colour.
  • TaskCard and ReminderCard use it for their done / archived state.
  • LESSONS.md Hide chores not due for 60+ days #56 records the rule: an elevated Card never gets a translucent container.
  • Changelog fragment (patch).

🤖 Generated with Claude Code

https://claude.ai/code/session_01N3hjmBPa3ZphQN8bdwBLAL


Generated by Claude Code

…ing stops showing through

A translucent surfaceVariant on an elevated Card let the platform shadow
(a ring with an unfilled umbra) bleed through, which read as a thick grey
border around a paler inner rectangle. Composite the 60% blend over the
page background instead. Adds LESSONS.md #56.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01N3hjmBPa3ZphQN8bdwBLAL
@mapgie
mapgie marked this pull request as ready for review September 9, 2026 01:28
@mapgie
mapgie merged commit ff03e3a into main Sep 9, 2026
6 checks passed
@mapgie
mapgie deleted the claude/borders-styling-q8pxk1 branch September 9, 2026 19:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants