Re: [Lazarus] Component icons howto ?

2022-03-30 Thread Ondrej Pokorny via lazarus
On 30.03.2022 10:44, Michael Van Canneyt via lazarus wrote: On Wed, 30 Mar 2022, Arne Hanssen via lazarus wrote: Den 30.03.2022 09:57, skreiv Michael Van Canneyt via lazarus: [...] Why do you think I know this is a scaling factor ? I didn't have a clue until Werner explained. Sorry, you

Re: [Lazarus] Component icons howto ?

2022-03-30 Thread Werner Pamler via lazarus
Am 30.03.2022 um 11:21 schrieb Ondrej Pokorny via lazarus: I am not against extending the component icon loading to handle a different file name convention. As Delphi uses the same concept that you prefer https://blogs.embarcadero.com/new-in-10-2-2-component-icons/ , if the Lazarus code

Re: [Lazarus] Component icons howto ?

2022-03-30 Thread Ondrej Pokorny via lazarus
On 30.03.2022 10:20, Arne Hanssen via lazarus wrote: I would guess that naming the files 'xyz_24x24.png' (base size 24px), 'xyz_24x24_150.png' (150% 36px) and 'xyz_24x24_200.png' (200% 48px) could be a reasonable naming solution? On the contrary: it is the bad from both naming solutions :)

Re: [Lazarus] Component icons howto ?

2022-03-30 Thread Ondrej Pokorny via lazarus
On 30.03.2022 09:57, Michael Van Canneyt via lazarus wrote: On Wed, 30 Mar 2022, Ondrej Pokorny via lazarus wrote: On 29.03.2022 19:45, Michael Van Canneyt via lazarus wrote: On Tue, 29 Mar 2022, Werner Pamler wrote: I don't know the actual procedure names ATM, but imagine that when the

Re: [Lazarus] Component icons howto ?

2022-03-30 Thread Arne Hanssen via lazarus
Den 30.03.2022 09:57, skreiv Michael Van Canneyt via lazarus: [...] Why do you think I know this is a scaling factor ? I didn't have a clue until Werner explained. Sorry, you can argue all you like, but if I see a list of icon files xyz_24x24.png then I know *exactly* what to create, just

Re: [Lazarus] Component icons howto ?

2022-03-30 Thread Michael Van Canneyt via lazarus
On Wed, 30 Mar 2022, Ondrej Pokorny via lazarus wrote: On 29.03.2022 19:45, Michael Van Canneyt via lazarus wrote: On Tue, 29 Mar 2022, Werner Pamler wrote: I don't know the actual procedure names ATM, but imagine that when the message window needs a "warning" icon (which is - say - 12x12

Re: [Lazarus] Component icons howto ?

2022-03-30 Thread Ondrej Pokorny via lazarus
On 29.03.2022 19:45, Michael Van Canneyt via lazarus wrote: On Tue, 29 Mar 2022, Werner Pamler wrote: I don't know the actual procedure names ATM, but imagine that when the message window needs a "warning" icon (which is - say - 12x12 at 96ppi) then the scaling procedure at 192ppi only needs

Re: [Lazarus] Component icons howto ?

2022-03-29 Thread Michael Van Canneyt via lazarus
On Tue, 29 Mar 2022, Werner Pamler wrote: Am 29.03.2022 um 18:37 schrieb Michael Van Canneyt: So you must always register the three images. You are not forced to. But when you provide only the standard size and run the IDE at 200% the IDE will upscale the 24x24 image to double size, and

Re: [Lazarus] Component icons howto ?

2022-03-29 Thread Werner Pamler via lazarus
Am 29.03.2022 um 18:37 schrieb Michael Van Canneyt: So you must always register the three images. You are not forced to. But when you provide only the standard size and run the IDE at 200% the IDE will upscale the 24x24 image to double size, and the icon will become blurry - just as it was

Re: [Lazarus] Component icons howto ?

2022-03-29 Thread Michael Van Canneyt via lazarus
On Tue, 29 Mar 2022, Werner Pamler via lazarus wrote: Am 29.03.2022 um 15:50 schrieb Michael Van Canneyt via lazarus:    I see there are 3 icons for every standard component:    mycomponent, mycomponent_150 and mycomponent_200    How does the IDE pick which image it needs ? The basic

Re: [Lazarus] Component icons howto ?

2022-03-29 Thread Werner Pamler via lazarus
Am 29.03.2022 um 15:50 schrieb Michael Van Canneyt via lazarus:    I see there are 3 icons for every standard component:    mycomponent, mycomponent_150 and mycomponent_200    How does the IDE pick which image it needs ? The basic image name must match the component name (including the "T").

[Lazarus] Component icons howto ?

2022-03-29 Thread Michael Van Canneyt via lazarus
Hi, 2 questions : 1. What is the current procedure for registering a component ? I see there are 3 icons for every standard component: mycomponent, mycomponent_150 and mycomponent_200 How does the IDE pick which image it needs ? As a corollary: what's with the strange names ?