Customization: images and icons
A set of theme images and icons. Set through the drawables field of the UsedeskKnowledgeBaseTheme class. Each field is a resource identifier (@DrawableRes Int).
| Field | Description | Default value |
|---|---|---|
| iconBack | "Back" button in the toolbar | @drawable/usedesk_ic_back |
| iconSupport | Contact support button | @drawable/usedesk_ic_support |
| iconSearch | Search icon | @drawable/usedesk_ic_search |
| iconSearchCancel | Clear search query icon | @drawable/usedesk_ic_cancel_round |
| iconSearchPaginationError | Search results loading error icon | @drawable/usedesk_ic_error_round |
| iconListItemArrowForward | Arrow in a list item | @drawable/usedesk_ic_arrow_forward |
| iconRatingGood | Positive article rating icon | @drawable/usedesk_ic_rating_good |
| iconRatingBad | Negative article rating icon | @drawable/usedesk_ic_rating_bad |
| iconRatingError | Rating sending error icon | @drawable/usedesk_ic_error_round |
| iconReviewError | Review sending error icon | @drawable/usedesk_ic_error_round |
| imageCantLoad | Image shown on a loading error | @drawable/usedesk_image_cant_load |
Example:
UsedeskKnowledgeBaseTheme.provider = {
UsedeskKnowledgeBaseTheme(
drawables = UsedeskKnowledgeBaseTheme.Drawables(
iconBack = R.drawable.my_ic_back
)
)
}