Commit ae219e89 authored by Kai Uwe Broulik's avatar Kai Uwe Broulik 🍇

[Kicker] Also round to icon size custom square images

When a custom square image is set, we can assume it's meant to be an icon. Also round it to icon sizes to avoid scaling artefacts.

Differential Revision:
parent 813749e7
......@@ -86,7 +86,9 @@ Item {
smooth: true
roundToIconSize: !useCustomButtonImage
// A custom icon could also be rectangular. However, if a square, custom, icon is given, assume it
// to be an icon and round it to the nearest icon size again to avoid scaling artefacts.
roundToIconSize: !useCustomButtonImage || aspectRatio === 1
onSourceChanged: updateSizeHints()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment