[Lazarus] ComponentPalette images size on HighDPI devices

Juha Manninen juha.manninen62 at gmail.com
Sun Dec 27 13:45:11 CET 2015


On Thu, Dec 24, 2015 at 11:53 PM, Sandro Cumerlato <
sandro.cumerlato at gmail.com> wrote:

> I've found a simple way to improve ComponentPalette usability on HighDPI
> touch devices.
> ...
> It is quite easy to enlarge buttons area (and improve usability expecially
> on touch devices), because the buttons size is hardcoded within source,
> look at the attached patch to see where it is located.
>
> It would be nice to add an option in ComponentPalette IDE Options section
> to let users change buttons size, it could be placed after Palette is
> visible checkbox and before Pages section.
>
> In my case 48x48 is good, but even 64x64 could be optimal.
>
> I haven't tried if something similar can be applied to IDE CoolBar buttons
> too, but it seems resonable to think about it as well.
>

Yes, it would improve usability in HighDPI systems. However I think it
should be automatic. When the system resolution gets higher, the images get
more space.
The next step obviously is to fill the space with bigger images. Then we
need 3 or more versions of every image.

However doing this for component palette + maybe IDE CoolBar is not enough.
At least TToolButton in LCL should support it, and maybe other controls
with icons. Then all applications would benefit.
IDE CoolBar is composed of Toolbars and ToolButtons, too.

If you code up with code to support that, I will be happy to apply it.
Initially reserving more space around icons would suffice, bigger images
would be used when they are available.

HighDPI issues are becoming more and more important as screen sizes and
resolutions keep growing.
We really must address it!

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20151227/03445a94/attachment-0003.html>


More information about the Lazarus mailing list