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
{{ message }}
Repository navigation
Commit 54361a4
Browse filesBrowse the repository at this point in the historyBrowse files
Refactor: Use FontManager for font loading in SettingsComposable
The `FontText` composable in `SettingsComposable.kt` has been refactored to use the existing `FontManager` for loading the currently selected font.
Previously, `FontText` duplicated the logic for mapping font preferences to `FontFamily` objects. This change centralizes font handling by calling `FontManager.getTypeface()` and converting the resulting `Typeface` into a Compose `FontFamily`.
This refactoring simplifies the `FontText` composable, removes redundant code, and ensures a consistent font-loading mechanism across the application. Additionally, some minor code cleanup and comment removal were performed within the composable.
0 commit comments