Package-level declarations

Types

Link copied to clipboard
sealed interface SettingsIntent : MviIntent

Describes user actions and screen side-effect requests handled by SettingsViewModel.

Link copied to clipboard
sealed interface SettingsModal

Modal destinations that can be displayed on top of the Settings screen.

Link copied to clipboard
data class SettingsState(val loading: Boolean = true, val onBoardingDemo: Boolean = false, val screenModal: SettingsModal = SettingsModal.None, val serverSource: ServerSource = ServerSource.AUTOMATIC1111, val sdModels: List<String> = emptyList(), val sdModelSelected: String = "", val stabilityAiCredits: Float = 0.0f, val localUseNNAPI: Boolean = false, val backgroundGenerationAvailable: Boolean = false, val backgroundGeneration: Boolean = false, val monitorConnectivity: Boolean = false, val autoSaveAiResults: Boolean = false, val saveToMediaStore: Boolean = false, val formAdvancedOptionsAlwaysShow: Boolean = false, val formPromptTaggedInput: Boolean = false, val useSystemColorPalette: Boolean = false, val useSystemDarkTheme: Boolean = false, val darkTheme: Boolean = false, val colorToken: ColorToken = ColorToken.MAUVE, val darkThemeToken: DarkThemeToken = DarkThemeToken.FRAPPE, val galleryGrid: Grid = Grid.Fixed2, val developerMode: Boolean = false, val appVersion: String = "", val storageUsageBytes: Long = 0, val networkUsageBytes: Long = 0) : MviState

Immutable UI model for the Settings screen.

Functions

Link copied to clipboard

Maps server source enum values to compact labels used as Settings row end values.

Link copied to clipboard
internal fun text(key: String): UiText

Resolves a localization key to the UiText format consumed by Settings rows.