Skip to content

feat(tipping): distinct tip-card color inside the tip sheet#1145

Merged
bmc08gt merged 1 commit into
code/cashfrom
feat/tip-card-sheet-color
Jul 24, 2026
Merged

feat(tipping): distinct tip-card color inside the tip sheet#1145
bmc08gt merged 1 commit into
code/cashfrom
feat/tip-card-sheet-color

Conversation

@bmc08gt

@bmc08gt bmc08gt commented Jul 24, 2026

Copy link
Copy Markdown
Collaborator

What

Render the tip card in a surface-specific background color: a darker tone inside the tip sheet, and a new default tone everywhere else.

Changes

  • LocalTipCardColor (TipCard.kt) — a staticCompositionLocalOf for the card background. TipCard reads it with a theme fallback: LocalTipCardColor.current.takeOrElse { CodeTheme.colors.tipCardColor }, so any render without a provider keeps the theme color.
  • TipCardScreen provides Color(0xFF101011) around the card, so the tip sheet keeps the darker near-black.
  • Theme (FlipcashDesignSystem) — default tipCard color moves 0xFF1010110xFF2A2620 for standalone renders.
  • ScannableRenderer — braces around the TipCard branch (cosmetic).

Testing

  • :apps:flipcash:shared:bills, :shared:theme, :features:tipping compile.

Introduce `LocalTipCardColor` so the tip card's background can be overridden
per surface. `TipCard` reads it and falls back to the theme color when no
value is provided (`takeOrElse { CodeTheme.colors.tipCardColor }`), so
existing standalone renders are unaffected.

The tip sheet (`TipCardScreen`) provides the darker `0xFF101011`, while the
default theme `tipCard` color moves to `0xFF2A2620` for standalone rendering.
@github-actions github-actions Bot added type: feature New functionality area: payments Payments, transfers, intents, billing area: ui Compose UI, theme, components, resources labels Jul 24, 2026
@bmc08gt
bmc08gt merged commit 4b0e116 into code/cash Jul 24, 2026
3 checks passed
@bmc08gt
bmc08gt deleted the feat/tip-card-sheet-color branch July 24, 2026 16:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: payments Payments, transfers, intents, billing area: ui Compose UI, theme, components, resources type: feature New functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant