mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 15:50:16 +02:00
resolvedCardHeight previously routed through a two-branch if(isWide) hidden inside the composable extension, so the regression tests for the global-slider reach bug only exercised the inner resolveCardHeight (which was never broken). Lift the aspect -> natural base mapping into a pure naturalCardBaseDp(AspectRatio) function with an exhaustive when, and test that directly. SQUARE and FOUR_THREE rows piggyback on the TALL global by design; the override branch still handles their absolute heightDp values (Music presets at 100dp, etc.). MainContent and DisplaySizePage's preview now both call a single scaledDensity(base, percent) helper instead of inlining Density(...) constructions. The double-fontScale-multiply regression has a real guard now: tests assert scaledDensity(2.0, 1.0, 150) returns density 3.0 and fontScale 1.0 (not 1.5), and a third test confirms an accessibility fontScale survives a UI scale change. Pure refactor + test sharpening; no behaviour change. |
||
|---|---|---|
| .. | ||
| config | ||
| schemas/com.github.damontecres.wholphin.data.AppDatabase | ||
| src | ||
| .gitignore | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||