Package-level declarations

Types

Link copied to clipboard
sealed interface SettingsIntent
Link copied to clipboard
data class SettingsState(val themeMode: ThemeMode = ThemeMode.System, val accentColor: AccentColor = AccentColor.Default)
Link copied to clipboard
class SettingsViewModel(themeModeStore: ThemeModeStore, accentColorStore: AccentColorStore) : ViewModel

Functions

Link copied to clipboard
fun AppearanceRoute(onBack: () -> Unit, modifier: Modifier = Modifier)

Nav wrapper: shares the Settings view model so theme/accent stay in sync with the settings list.

Link copied to clipboard
fun AppearanceScreen(state: SettingsState, onIntent: (SettingsIntent) -> Unit, onBack: () -> Unit, modifier: Modifier = Modifier)

The appearance sub-screen: light/dark mode and the accent colour, split off SettingsScreen so the settings list stays short and these two colour controls live behind one row. Shares SettingsViewModel (and thus SettingsState) with Settings, so a change here is reflected there and persisted the same way.

Link copied to clipboard
fun LicensesRoute(onBack: () -> Unit, modifier: Modifier = Modifier)

Loads the committed license metadata off the main thread, then renders LicensesScreen.

Link copied to clipboard
fun LicensesScreen(libraries: Libs?, onBack: () -> Unit, modifier: Modifier = Modifier)

Every open-source dependency the app ships with and its license, from the AboutLibraries export committed at composeResources/files/aboutlibraries.json (regenerate with :shared:exportLibraryDefinitions when dependencies change). Same top-bar treatment as SettingsScreen, which links here from its About section.

Link copied to clipboard
fun SettingsScreen(state: SettingsState, onIntent: (SettingsIntent) -> Unit, onAppearanceClick: () -> Unit, onEditInterestsClick: () -> Unit, onPrivacyPolicyClick: () -> Unit, onLicensesClick: () -> Unit, onBack: () -> Unit, modifier: Modifier = Modifier, isLoggedIn: Boolean = false, onLogout: () -> Unit = {}, onDeleteData: () -> Unit = {}, deleteInProgress: Boolean = false, deleteError: String? = null)

M3 Expressive settings: a large flexible top bar that collapses on scroll, and the theme choice as a connected toggle-button group (the Expressive segmented pattern) instead of a radio list. Sections follow the Account screen's house style — eyebrow label + tonal surface card.