You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactor: Refactor settings font and icon sizing logic
This commit refactors the sizing logic for fonts and icons within the `SettingsFragment`.
Previously, font and icon sizes were calculated based on a fixed offset and involved a custom `tuToDp` conversion function. The new implementation simplifies this by using `derivedStateOf` to dynamically calculate `titleFontSize`, `descriptionFontSize`, and `iconSize` based on the `selectedSettingsSize`.
The redundant `tuToDp` composable function has been removed and replaced with a more concise `TextUnit.toDp()` extension function, cleaning up the code and improving readability.
0 commit comments