Package-level declarations

Functions

Link copied to clipboard
fun Badge(color: Color, shape: BadgeShape): PainterHint

Adds a colored badge to the image being loaded.

Link copied to clipboard
fun ColorBasedPaletteReplacement(paletteMap: Map<Color, Color>): PainterHint

Creates a PainterHint that replaces all colors in the paletteMap with their corresponding new value. It is used in IJ up to 23.3 to support patching the SVG colors for checkboxes and radio buttons.

Link copied to clipboard
fun Dark(isDark: Boolean = true): PainterHint

Switches between the light and dark variants of an image based on isDark. If no dark image exists, the light image will be used.

Link copied to clipboard

Selects the @2x HiDPI variant for bitmap images when running on a HiDPI screen.

Link copied to clipboard

Creates a PainterHint that replaces colors with their corresponding new value, based on the IDs of each element. It is used in IJ 24.1 and later to support patching the SVG colors for checkboxes and radio buttons.

Link copied to clipboard

A PainterPathHint that will override the paths passed as keys in the overrides map with the corresponding map values.

Link copied to clipboard
fun Selected(selected: Boolean = true): PainterHint

Selects the "selected" variant of an image when selected is true. If an image does not have a selected variant, the base version will be used.

fun Selected(state: SelectableComponentState): PainterHint
Link copied to clipboard
fun Size(size: Int): PainterHint
fun Size(width: Int, height: Int): PainterHint

Selects a size variant for the image. If the specific size that was requested is not available, the base image will be used.

Link copied to clipboard
fun Stateful(state: InteractiveComponentState): PainterHint

Selects a stateful variant of an image, based on the current state. Stateful variants are Focused, Pressed, Hovered, and Disabled. If an image does not have the required stateful variant, the base one will be used.

Link copied to clipboard
fun Stroke(color: Color): PainterHint

Transforms an SVG image to only draw its borders in the provided color. All fills are removed.