fromXmlTheme

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.

Return

The UiColorScheme of context's XML theme.

Parameters

context

The context whose theme to read; an activity, or a ContextThemeWrapper around one.


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.

Copy it and change the parts you want to build a scheme for PdfUi.setColorScheme() or NutrientTheme that keeps every other screen's XML colors.

Return

The UiColorScheme of the current context's XML theme.