Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-27 Thread Donald Ziesig via Lazarus
On 02/26/2017 04:13 PM, Ondrej Pokorny via Lazarus wrote: On 26.02.2017 17:01, Donald Ziesig via Lazarus wrote: I agree. I just spent most of two days rescaling the icons with gimp, then registering them. It looks good, but I sure would not want to have to repeat for 200%, etc. Do you mean

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-27 Thread Marc Weustink via Lazarus
On February 26, 2017 10:11:58 PM GMT+01:00, Ondrej Pokorny via Lazarus wrote: >On 26.02.2017 16:33, Vojtěch Čihák via Lazarus wrote: >> >> Wouldn't be better (or would it be possible) to have *.svg icons in >> resources and generate *.png icons on start of IDE?

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-27 Thread Ondrej Pokorny via Lazarus
On 22.02.2017 17:55, Donald Ziesig via Lazarus wrote: When I started lazarus, the CoolBar is empty (except for the Save icon which is the correct size). I fixed that. The component icons are definitely bigger than the last version, but appear more like 125% rather than the 150% that I would

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-27 Thread Graeme Geldenhuys via Lazarus
On 2017-02-27 07:25, Kostas Michalopoulos via Lazarus wrote: > IMO the > best approach for vector icons is what Haiku OS is doing by using a custom > icon format that is designed for small sizes and -more importantly- > different elements in an icon can have a LOD range Indeed, Haiku came up

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-26 Thread Kostas Michalopoulos via Lazarus
SVN is not ideal for icon formats. Beyond being too big (it is a verbose XML file after all), vector icons do not good at arbitrary sizes. IMO the best approach for vector icons is what Haiku OS is doing by using a custom icon format that is designed for small sizes and -more importantly-

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-26 Thread Ondrej Pokorny via Lazarus
On 26.02.2017 17:01, Donald Ziesig via Lazarus wrote: I agree. I just spent most of two days rescaling the icons with gimp, then registering them. It looks good, but I sure would not want to have to repeat for 200%, etc. Do you mean that you took Lazarus original 16px icons, scaled them up

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-26 Thread Ondrej Pokorny via Lazarus
On 26.02.2017 16:33, Vojtěch Čihák via Lazarus wrote: Wouldn't be better (or would it be possible) to have *.svg icons in resources and generate *.png icons on start of IDE? Now you add 150% and 200%, later will come 250, 300% as 4k, 5k and 8k monitors come to market. You are welcome to

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-26 Thread Vojtěch Čihák via Lazarus
s.lazarus-ide.org> Datum: 26.02.2017 19:28 Předmět: Re: [Lazarus] LCL High-DPI request for help adding images Am 26.02.2017 18:01 schrieb "Vojtěch Čihák via Lazarus" <lazarus@lists.lazarus-ide.org <lazarus@lists.lazarus-ide.org>>: > > I use Inkscape for icons. I

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-26 Thread Sven Barth via Lazarus
Am 26.02.2017 18:01 schrieb "Vojtěch Čihák via Lazarus" < lazarus@lists.lazarus-ide.org>: > > I use Inkscape for icons. I use some template 64*64 px (although px means nothing in vector format, it is moreless for help-grid only). Then I use rsv-convert tool to convert icons to *.png. The icons

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-26 Thread Vojtěch Čihák via Lazarus
look is also accepatble (24, 48, 96 px).   V. __ Od: Donald Ziesig via Lazarus <lazarus@lists.lazarus-ide.org> Komu: lazarus@lists.lazarus-ide.org Datum: 26.02.2017 17:01 Předmět: Re: [Lazarus] LCL High-DPI request for help adding

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-26 Thread Donald Ziesig via Lazarus
On 02/26/2017 10:33 AM, Vojtěch Čihák via Lazarus wrote: Wouldn't be better (or would it be possible) to have *.svg icons in resources and generate *.png icons on start of IDE? Now you add 150% and 200%, later will come 250, 300% as 4k, 5k and 8k monitors come to market. V.

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-26 Thread Vojtěch Čihák via Lazarus
Wouldn't be better (or would it be possible) to have *.svg icons in resources and generate *.png icons on start of IDE? Now you add 150% and 200%, later will come 250, 300% as 4k, 5k and 8k monitors come to market.   V. __ Od: Ondrej

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-24 Thread Donald Ziesig via Lazarus
On 02/24/2017 05:03 AM, Ondrej Pokorny via Lazarus wrote: On 22.02.2017 17:55, Donald Ziesig via Lazarus wrote: Hi Ondrej! I downloaded the latest lazarus from svn. Then make bigide. When I started lazarus, the CoolBar is empty (except for the Save icon which is the correct size). The

Re: [Lazarus] LCL High-DPI

2017-02-24 Thread Ondrej Pokorny via Lazarus
On 22.02.2017 23:18, Michael Van Canneyt via Lazarus wrote: On Mon, 20 Feb 2017, Ondrej Pokorny via Lazarus wrote: I'd like to announce that I finished the concept of DPI scaling in Lazarus / LCL. It's quite easy for the programmer. Documented here:

Re: [Lazarus] LCL High-DPI Watch List is Blank.

2017-02-24 Thread Ondrej Pokorny via Lazarus
On 22.02.2017 19:40, Donald Ziesig via Lazarus wrote: After adding a few watches, it looks like this: It worked correctly yesterday before my latest re-install for improved Hi-Res buttons. The toolbar seems to have the problem with empty icons. It's strange that you don't get any text

Re: [Lazarus] LCL High-DPI

2017-02-24 Thread Ondrej Pokorny via Lazarus
On 22.02.2017 23:18, Michael Van Canneyt via Lazarus wrote: I have tried this. I see no effect whatsoever ? I have even specially opened 2 IDEs. One which is more than a year old, and the newly compiled one. They look identical. I checked, and I found Application.Scaled := True; in the

Re: [Lazarus] LCL High-DPI

2017-02-22 Thread Michael Van Canneyt via Lazarus
On Mon, 20 Feb 2017, Ondrej Pokorny via Lazarus wrote: I'd like to announce that I finished the concept of DPI scaling in Lazarus / LCL. It's quite easy for the programmer. Documented here: http://wiki.lazarus.freepascal.org/High_DPI (details are in "High DPI in Lazarus 1.7 and above").

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-22 Thread Donald Ziesig via Lazarus
Hi Ondrej! I downloaded the latest lazarus from svn. Then make bigide. When I started lazarus, the CoolBar is empty (except for the Save icon which is the correct size). The component icons are definitely bigger than the last version, but appear more like 125% rather than the 150% that I

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-22 Thread Ondrej Pokorny via Lazarus
On 22.02.2017 8:37, Torsten Bonde Christiansen via Lazarus wrote: How do i use icon scaling for user project? The LCL doesn't offer an automatic feature for that. You have to do it yourself - use different image lists for different scaling or load external images in the wanted scaling. The

Re: [Lazarus] LCL High-DPI request for help adding images

2017-02-21 Thread Torsten Bonde Christiansen via Lazarus
How do i use icon scaling for user project? Regards Torsten. On 2017-02-22 00:33, Ondrej Pokorny via Lazarus wrote: Update: I worked further today (unfortunately...) I also added icon scaling support to the IDE. The IDE now can load 150% and 200% versions of the icons. If a High-DPI icon is

Re: [Lazarus] LCL High-DPI

2017-02-21 Thread Ondrej Pokorny via Lazarus
On 21.02.2017 19:13, Donald Ziesig via Lazarus wrote: One more question. Where can I find documentation for TControl.ScaleCoord() or ScaleCoord96()? It is not in the CCR. I will search the source. The difference is in the scale basis: ScaleCoord96: hard-coded 96. ScaleCoord: DesignTimePPI

Re: [Lazarus] LCL High-DPI

2017-02-21 Thread Donald Ziesig via Lazarus
One more question. Where can I find documentation for TControl.ScaleCoord() or ScaleCoord96()? It is not in the CCR. I will search the source. Don On 02/20/2017 11:46 AM, Ondrej Pokorny via Lazarus wrote: I'd like to announce that I finished the concept of DPI scaling in Lazarus / LCL.

Re: [Lazarus] LCL High-DPI

2017-02-21 Thread Donald Ziesig via Lazarus
Hi Ondrej! Your work has made a major improvement in Lazarus. It is much more enjoyable to use. I have converted my most recent major APP using it and it was mostly straight forward. I will continue using it and report back to you as my work permits. Thank you, Don Ziesig On 02/20/2017

Re: [Lazarus] LCL High-DPI

2017-02-21 Thread Alexey via Lazarus
On 21.02.2017 12:21, Maciej Izak via Lazarus wrote: Thanks to your work Lazarus is now much, much better than Delphi in this field ^^. Yes, thanks to Ondrej, very good work -- Regards, Alexey -- ___ Lazarus mailing list

Re: [Lazarus] LCL High-DPI

2017-02-21 Thread Maciej Izak via Lazarus
2017-02-20 17:46 GMT+01:00 Ondrej Pokorny via Lazarus < lazarus@lists.lazarus-ide.org>: > I'd like to announce that I finished the concept of DPI scaling in Lazarus > / LCL. Thanks to your work Lazarus is now much, much better than Delphi in this field ^^. -- Best regards, Maciej Izak --