Skip to content

refactor: route GameListItem and install overlay colors through the theme - #73

Merged
LeGeRyChEeSe merged 1 commit into
mainfrom
refactor/theme-hardcoded-colors-lot2
Jul 24, 2026
Merged

refactor: route GameListItem and install overlay colors through the theme#73
LeGeRyChEeSe merged 1 commit into
mainfrom
refactor/theme-hardcoded-colors-lot2

Conversation

@LeGeRyChEeSe

Copy link
Copy Markdown
Owner

Replaces hardcoded colors in GameListItem, SyncingOverlay, LoadingScreen, ErrorScreen, InstallationOverlay and BottomQueueBar with MaterialTheme.colorScheme equivalents. Builds on #64, #70, #71, #72.

…heme

Lot 2/4 of the hardcoded-color migration (docs/sonnet5-specs/02 §6),
built on refactor/theme-hardcoded-colors-lot1.

GameListItem.kt: card container/border, icon placeholder background/
border, game name, size/download-label text, unfavorited star tint,
expanded divider, description surface/text now read
MaterialTheme.colorScheme instead of Color(0xFF121212)/Color(0xFF1E1E1E)/
Color.Black/Color.White/Color.Gray/Color.LightGray.

MainActivity.kt install-related overlays (SyncingOverlay, LoadingScreen,
ErrorScreen, InstallationOverlay, BottomQueueBar): same treatment for
backgrounds, borders and neutral text/icon colors. ErrorScreen's 'Try
Again' button text was hardcoded Color.White on a
colorScheme.secondary background - same latent contrast bug as lot 1's
filter chips, fixed with onSecondary.

Deliberately NOT touched (semantic status/danger colors, per doc):
favorite-star gold, downloaded/ready/installed green-blue-red version
badges, permission-warning red, delete/uninstall red, paused-state
gray on progress indicators, and the sync-failure card's fixed dark
red (kept exact to avoid a default-look diff, since it doesn't match
colorScheme.error's dark-theme value).

Defaults unchanged for the same reason as lot 1: colorScheme resolves
to the original hardcoded hex values (or an indistinguishably close
one - 0x1A1A1A vs 0x1E1E1E) with default AppearanceSettings.
@LeGeRyChEeSe
LeGeRyChEeSe merged commit 60f3dbf into main Jul 24, 2026
5 checks passed
@LeGeRyChEeSe
LeGeRyChEeSe deleted the refactor/theme-hardcoded-colors-lot2 branch July 24, 2026 11:53
@github-actions

Copy link
Copy Markdown

PR Validation Summary ✅

Status: All checks passed!
Core Duration: 4m 28s ✅ (Target < 5m)

Check Status Details
Lint ✅ Pass N/A Errors, N/A Warnings
Unit Tests ✅ Pass JUnit Reports
Build ✅ Pass assembleDevDebug

Reports and artifacts (including Lint HTML) are available in the Artifacts Tab of the Action Run Summary

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.

1 participant