Package-level declarations
Types
Color scheme for the action menu, the sheet the share button opens.
Color scheme for the AI assistant chat UI.
Color scheme for the contextual toolbars, such as the annotation creation toolbar, and their submenus.
Color scheme for the document info view.
Color scheme for the document title overlay — the strip rendered directly below the main toolbar row that shows the current document's title (the Compose successor of the legacy pspdf__activity_title_overlay). Part of MainToolbarColors since the overlay now lives inside the main toolbar, and resolved from either the Compose theme or XML attributes like the rest of the toolbar colors.
Color scheme for the main toolbar in the PDF viewer.
Reads the schemes the nearest NutrientTheme provides.
Drove runtime theme propagation. The SDK re-reads its colors from state (LocalConfiguration, LocalContext and the scheme set on the activity), and PdfActivity and PdfUiFragment handle setTheme() and configuration changes themselves, so an app no longer creates or invalidates a controller.
Color scheme for a bottom bar in the outline view, such as the bookmark list's add and edit bar.
Color scheme for the outline view, the sheet that shows the document's outline, bookmarks, annotations, attachments and document info in tabs. Document info has its own DocumentInfoColorScheme.
Container class that holds colors as well as icons to be used in the app.
Color scheme for settings UI components.
Color scheme for the document tab bar, com.pspdfkit.compose.tabs.composables.NutrientTabBar.
Color scheme for the thumbnail bar, PdfThumbnailBar. Its public color setters, such as PdfThumbnailBar.setBackgroundColor(), take precedence once they are called.
Color scheme for the thumbnail grid, the page overview that PdfThumbnailGrid shows.
Color scheme for toolbar popup menus.
The colors of the SDK's UI: a Material 3 material base, and a color scheme per screen that overrides it.
Container class that holds custom icon schemes for all UI components.
Properties
Key that changes when the activity's theme changes in place, such as after Activity.setTheme() in a PdfActivity or an activity hosting a PdfUiFragment. LocalContext and LocalConfiguration stay the same then, so code inside a NutrientTheme that remembers something read from the XML theme keys it on this as well. Colors read from NutrientTheme.colorScheme need no key. 0 outside a NutrientTheme.
Functions
Default values provider for Compose UI.
The colors the XML theme attributes of the current context give, one scheme for all SDK screens. Copy it and change the parts you want to build a scheme for PdfUi.setColorScheme().
Provides the SDK's UiColorScheme and UiIconScheme to content and keeps them in step with runtime theme changes (THEME-3). Read them inside content with NutrientTheme.colorScheme and NutrientTheme.iconScheme.
Returns the NutrientThemeController of the activity the composition belongs to. Deprecated with NutrientThemeController: the SDK re-reads its colors from state, and NutrientTheme takes no controller any more.