Skip to main content

ICON_OVERSAMPLE

Constant ICON_OVERSAMPLE 

Source
pub const ICON_OVERSAMPLE: u32 = 2;
Expand description

How much larger than the target (layout) size icons are rasterized, so Skia’s downscale keeps edges crisp under sub-pixel positioning and minor scale animations.

This lives here — not as a local const inside the painter — because it must feed the exact same computation icon_cache_key uses. See that function’s doc for why (issue #166).