mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-09 08:01:20 +02:00
Adds a scaledSp(baseSp: Int) composable helper that returns a TextUnit scaled by the active text-size level. The lookup is a hand-mapped DisplaySizeLevel.scaledSp(Int) table for the known base sp values (integer outputs at every cell, no fractional sp). Unknown base sp values fall back to integer-rounded percent math instead of throwing, so the helper is safe to call from anywhere. scaledSp reads from LocalInterfaceCustomization.current.textSizeLevel so the same composition local that already carries the user's interface preferences also drives text scaling. 33 hardcoded fontSize = N.sp call sites across cards, components, playback overlay, nav, setup, and livetv go through scaledSp. This covers both plain text and FontAwesome icon-glyph sites: at the Default level the lookup returns the exact base sp, so today's rendered sizes are byte-identical. PlaybackController's file-level titleTextSize and subtitleTextSize constants are inlined as scaledSp(28) and scaledSp(18), keeping the rendering and PlaybackOverlay's height-offset math in lockstep at every level. The v1 scaledDensity helper in InterfaceHelpers.kt and its tests are deleted - they had no callers after MainContent's density override was removed. The InterfaceCustomization derived-getter doc comment is retuned to v2-valid percent values. |
||
|---|---|---|
| .. | ||
| config | ||
| schemas/com.github.damontecres.wholphin.data.AppDatabase | ||
| src | ||
| .gitignore | ||
| build.gradle.kts | ||
| proguard-rules.pro | ||