setMainToolbarColorScheme

Themes the main toolbar programmatically with a Compose UiColorScheme, instead of (or on top of) the XML theme attributes. The scheme colors the toolbar row, the title, and the overflow/submenu popup. Pass null to clear the override and fall back to the default XML-attribute theming.

XML theming remains the default; this is the programmatic entry point for Java/ PdfActivity hosts that previously could only theme the toolbar through styles. Build a scheme from the SDK defaults (e.g. UiColorScheme's Compose defaults) and copy the mainToolbar colors you want to change.

Parameters

colorScheme

the color scheme to apply, or null to use the XML defaults.