Package-level declarations

Types

Link copied to clipboard
sealed interface DustBackupUiState

UI state for the Dust cloud-backup affordance.

Link copied to clipboard
data class WalletPanelColors(val pillBackground: Color, val pillBorder: Color, val onPill: Color, val onPillDim: Color, val sheetBackground: Color, val onSheet: Color, val onSheetDim: Color, val onSheetSubtle: Color, val accent: Color, val error: Color, val button: Color, val onButton: Color, val buttonDisabled: Color, val onButtonDisabled: Color)

Color tokens for WalletStatusPanel. Host apps can pass a custom palette to theme the wallet panel; Default matches the dark-themed example apps already in this repo.

Link copied to clipboard
class WalletPanelViewModel @Inject constructor(sdkProvider: MidnightSdkProvider, sigilStateStore: SigilStateStore, driveAuth: DriveAuthManager) : ViewModel

Wallet panel presenter: drives the canonical WalletConfig and translates SDK / seed state into WalletStatus for the panel UI.

Link copied to clipboard

Functions

Link copied to clipboard
fun QrCode(text: String, size: Dp, modifier: Modifier = Modifier)

Renders a QR code for text as a square bitmap.

Link copied to clipboard
fun WalletStatusPanel(initialNetwork: MidnightNetwork = MidnightNetwork.UNDEPLOYED, modifier: Modifier = Modifier, colors: WalletPanelColors = WalletPanelColors.Default, viewModel: WalletPanelViewModel = hiltViewModel(), onNetworkChange: (MidnightNetwork) -> Unit = {}, enabled: Boolean = true)

Drop-in wallet panel for example apps.