[Lazarus] High-DPI aware LCL ?

Michael Van Canneyt michael at freepascal.org
Wed Oct 7 13:32:14 CEST 2015



On Wed, 7 Oct 2015, Lukasz Sokol wrote:

> On 07/10/15 11:44, Graeme Geldenhuys wrote:
>> On 2015-10-07 11:24, Mattias Gaertner wrote:
>>> There are currently about 400 icons in the IDE.
>>> We need volunteers to create them either as SVG or as higher resolution
>>> image.
>>
>> Use SVG directly and let it render the correct size at runtime. That
>> will solve the problem for any dpi value. Higher resolution images will
>> only solve the problem for hard-coded dpi values like the Microsoft
>> ones... Think Android phones and tables, where every devices has a
>> different DPI value and they vary greatly.
>>
>> Break it down into manageable steps:
>>
>> 1. Add SVG support to LCL, but keep BMP & PNG support too.
>> 2. Change the high-visibility icons to SVG first.
>>    eg: the ones on the main toolbar.
>> 3. Then as time permits (or contributors help), go through the menus and
>>    dialogs one by one.
>>
>
> What do you think about http://www.pushing-pixels.org/2011/11/04/about-those-vector-icons.html ?

I had seen this article already, which is why I also think that SVG is not the way to go.

Basically, the only excuse for using SVG for icons, is lack of time.

Michael.




More information about the Lazarus mailing list