Optimize: card, goal chooser and sign-in redesign
Description
Visual redesign of every Optimize surface so it reads like the membership paywall instead of stock Material dialogs. Presentation only: card actions, the account and sign-in flow, and the funnel events are unchanged.
- Shared components (
ui/component/PremiumComponents.kt): HeroBadge, IconTile, BenefitRow, BenefitCard, PremiumDialogButton, PremiumTextButton, OutcomePill, GradientBorderSurface, MetricDeltaTile and FocusScaleBackButton. The debug paywall, the support upgrade dialog and the support state chip now use them with no change in look. - Optimize card (
OptimizeCardDialog.kt): one custom dialog for every card kind, hero and benefits on the left and actions on the right in landscape, stacked in portrait. The helped card shows before/after tiles for frame rate, stutter and stable minutes. - Goal chooser (
OptimizeVisuals.kt): selectable goal cards (Balanced, Performance, Stability, Power and heat, with Off as a muted row), a Suggested pill, and d-pad focus on every card. - Optimize dialog: hero, goal cards, a status block, Continue, See membership, and Restore original settings.
- Game options row: a status pill and a small Continue button; the profile chips are gone from the row so they no longer fight it for d-pad focus.
- Sign-in:
AccountSignInDialogtakes optionalheroandbenefitsslots (other callers unchanged); from Optimize it shows a short pitch above the QR code.
New strings, in the default file and all 15 locales: optimize_benefit_fps, optimize_benefit_stutter, optimize_benefit_stable_longer, optimize_benefit_undo, optimize_badge_free_to_try, optimize_badge_suggested, optimize_choose_goal, optimize_restore_original_body, optimize_metric_fps, optimize_metric_stutter, optimize_metric_stable_for, optimize_metric_fps_value, optimize_metric_percent_value, optimize_metric_delta_up, optimize_metric_delta_down, optimize_metric_before, plurals optimize_metric_minutes. "Included with your membership" reuses optimize_included.
Stacked on utkarshdalal/GameNative#2380.
CI on the stack (build and unit tests, Legacy and Modern): run 42573176696 at b9f82f2e3.
Recording
None yet; this needs a device pass on a handheld in landscape with a controller.
Type of Change
- Bug fix
- Performance / stability improvement
- Compatibility improvements
- Other (requires prior approval)
Checklist
- If I have access to
#code-changes, I have discussed this change there and it has been green-lighted. If I do not have access, I have still provided clear context in this PR. If I skip both, I accept that this change may face delays in review, may not be reviewed at all, or may be closed. - This change aligns with the current project scope (core functionality, stability, or performance). If not, it has been explicitly approved beforehand.
- I have attached a recording of the change.
- I have read and agree to the contribution guidelines in
CONTRIBUTING.md.