mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 23:51:21 +02:00
Settings panel layout flipped: preview now occupies the left two-thirds of the page (nav rail at the natural app-left position), settings panel sits on the right at 300dp wide. Mirrors the real home-screen layout so the preview reads as a true reflection of what the user will see. Replaces the popup ChoicePreference selector with an inline tick-slider per control. Each slider is a chunky 24dp rounded track using surfaceVariant for the inactive background and primary for the thumb; the thumb is a rounded pill that snaps to one of four slot centers and fills 88% of the track height. D-pad LEFT/RIGHT cycles slots within the focused control; UP/DOWN moves between controls. Selection commits on focus change so the preview updates without an extra Enter press. Wraps the settings panel in a nested MaterialTheme using the unscaled AppTypography (both tv.material3 and compose.material3 flavors) so the panel's own labels stay at base size regardless of the Text size level the user picks. Without this nesting the panel chrome reflowed under the user's fingers as they cycled levels. Preview now uses SlimItemFields when fetching, so the Overview text populates on the hero. Episodes row is rendered first (matching the real home-screen ordering) so the hero defaults to an episode item, which exercises the full hero surface (title + episode name + overview + quick details). TimeDisplay is drawn over the preview area when the user's showClock preference is enabled. Text-size jumps are tuned wider: ExtraSmall 84% (was 88), Small 92% (was 94), Large 116% (was 108). Default stays at 100%. The hand-mapped sp lookup is regenerated for these percentages. scaledSp falls back to integer-rounded formula math instead of throwing on unmapped base sp values, so the helper is safe to call from any fontSize site without first extending the table. |
||
|---|---|---|
| .. | ||
| androidTest/java/com/github/damontecres/wholphin/test | ||
| appstore | ||
| debug/res/values | ||
| main | ||
| test | ||