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? Now you add 150% >> and 200%, l

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 e

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 with

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- different

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 t

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 i

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

2017-02-26 Thread Vojtěch Čihák via Lazarus
Yes, I understand. But it also depend on the content of an icon. I added one example where the aliasing is visible.   V.   __ Od: Sven Barth via Lazarus Komu: Lazarus mailing list Datum: 26.02.2017 19:28 Předmět: Re: [Lazarus] LCL

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 look

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 Komu: lazarus@lists.lazarus-ide.org Datum: 26.02.2017 17:01 Předmět: Re: [Lazarus] LCL High-DPI request for help adding images On 02/26/2017 10:33 AM, Vojtěch

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

2017-02-26 Thread Donald Ziesig via Lazarus
. V. __ > Od: Ondrej Pokorny via Lazarus > Komu: Lazarus mailing list > Datum: 22.02.2017 00:33 > Předmět: [Lazarus] LCL High-DPI request for help adding images > Update: I worked further today (unfortunately...) I also added icon sc

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

2017-02-26 Thread Vojtěch Čihák via Lazarus
ndrej Pokorny via Lazarus Komu: Lazarus mailing list Datum: 22.02.2017 00:33 Předmět: [Lazarus] LCL High-DPI request for help adding images 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.

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 compon

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: http://wiki.lazarus.freepascal.org/High_DP

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 eit

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 source

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

2017-02-24 Thread Ondrej Pokorny via Lazarus
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 component icons are definitely bigger than the last version, but

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 Watch List is Blank.

2017-02-22 Thread Donald Ziesig via Lazarus
On 02/22/2017 11:55 AM, 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 component icons are definitely bigger than the last version,

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 wou

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 ID

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 m

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

2017-02-21 Thread Ondrej Pokorny via Lazarus
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 missing, the normal icon is upscaled (with the worst algorithm, but that's what is available in the IDE). Request: s

Re: [Lazarus] LCL High-DPI minor IDE issues

2017-02-21 Thread Donald Ziesig via Lazarus
Very strange. I looked at all of the Form DesignTimePPI and they were set to 96! I shut down Lazarus and re-started it and they all changed back to 144 (and the little buttons got big!). My forms all look good again except for the "Watch Properties". I'll keep trying and let you know. Don

Re: [Lazarus] LCL High-DPI minor IDE issues

2017-02-21 Thread Ondrej Pokorny via Lazarus
Strange, it looks good here (the latest revision): https://s17.postimg.org/9a9oa9cyn/Linux_120_DPI.png I've been working on High DPI today so maybe it was broken at some point during the day (?) Ondrej On 21.02.2017 19:03, Donald Ziesig via Lazarus wrote: Hi Ondrej! I just ran into two i

[Lazarus] LCL High-DPI minor IDE issues

2017-02-21 Thread Donald Ziesig via Lazarus
Hi Ondrej! I just ran into two issues with the IDE in High-DPI mode. The IDE main window changed from yesterday (when I first used it) to today. Yesterday all of the Buttons were larger (but the internal images were still small). Today the Buttons have returned to their small sizes. The in

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 Lazarus@lists.lazarus-ide.o

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 --

[Lazarus] LCL High-DPI

2017-02-20 Thread Ondrej Pokorny via Lazarus
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"). 1.) I made the Lazarus IDE High-DPI aware - the IDE itself