Companion

object Companion

Companion object providing factory methods for UiColorScheme.

Functions

Link copied to clipboard

Returns the SDK's colors for the ambient MaterialTheme: fromMaterial on its color scheme, resolved.

Link copied to clipboard

A scheme whose every screen takes its colors from the Material 3 roles in colors. Copy it and set the slice colors that should differ. Not composable, so it can be built in onCreate().

Link copied to clipboard

Returns the colors the XML theme attributes of the current context give, the scheme the SDK uses when no other is set. Each part is resolved from its own style, such as pspdf__outlineViewStyle or pspdf__settingsDialogStyle.

Returns the colors the XML theme attributes of context give, the scheme the SDK uses when no other is set, with a Material 3 base derived from the theme. Not composable, so it can be built in onCreate() or from Java. Copy it and change the parts you want to build a scheme for PdfUi.setColorScheme() that keeps every other screen's XML colors.