Skip to content

iconGrid: Downscale icon size when comparing to defaults

Georges Basile Stavracas Neto requested to merge gbsneto/fix-icon-scale into master

The return value of st_theme_node_lookup_length() is scaled according to the scale factor. IconGrid.ICON_SIZE is not. However, when BaseIcon tries to fetch the CSS value for "icon-size" (which returns a scaled value), it uses it as-is, mixing the two coordinate systems.

Use a single coordinate system (unscaled sizes) in IconGrid.BaseIcon.

Merge request reports