https://bugs.documentfoundation.org/show_bug.cgi?id=138841

--- Comment #20 from Jakub KoĊ›cielak <[email protected]> ---
Currently, we're using 32x32 icons displayed in a 24x24 control.
Control.idt:
Width Height Attributes
24 24 5242881
Attributes 5242881 = 1(Visible) + 4194304(IconSize 32x32) + 1048576(FixedSize
enabled)
With these settings, these icons will always be 24x24 and won't be scaled
(except for scaling the icon from 32 to 24 to fit the control).

MSI is outdated in terms of .ico file support; the maximum size that can be set
is 48x48 pixels.

However, we can use a little trick. I disabled FixedSize and created 128x128
.ico files based on the .svg files and used 32x32 controls.

Width Height Attributes
32 32 4194305
Attributes 4194305 = 1(Visible) + 4194304(IconSize 32x32) + 0(FixedSize
disabled)
With these settings, these icons will be 32x32 at 100% scale, but will scale,
for example, to 64x64 at 200% scale. There will be no stretching or pixelation
because it will start at 128x128 and scale down.
Only after scaling exceeds 400% (4x32 = 128), i.e., for screens larger than 8K,
will the size stretch beyond 128x128 begin.

We can use 256x256 icons right away and be 16K ready ;-)

I've attached screenshots from the installer at 175%, 150%, 125%, and 100% at
Full HD.
250%, 225%, and 200% at 2560x1600.
400% at 2560x1600.
It looks nice.
I'd be happy to prepare a small patch.

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to