Re: [Lazarus] High-DPI aware LCL ?
Am 07.10.2015 20:55 schrieb: > > On 10/07/2015 06:24 AM, Mattias Gaertner wrote: >> >> On Wed, 7 Oct 2015 12:52:53 +0300 >> Juha Manninen wrote: >> >>> [...] >>> Who would step in and implement SVG support. I believe Sandro would >>> join if there are other people involved. >> >> >> There are currently about 400 icons in the IDE. >> We need volunteers to create them either as SVG or as higher resolution >> image. > > > is there not a conversion tool that can convert them from what they are now (raster??) to SVG format? > > a quick look shows there's various ways but it seems that many simply embed the original image within the SVG output... the good ones that work seem to be manual (eg: inkscape, adobe illustrator)... > Yes, there are conversion tools, but that does not necessarily mean that the resulting images are nicely scaleable. It might work, it might not and depending on the algorithms the tool uses it might even depend on the source image... Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
[Lazarus] Streaming my TODO list
I've got a few programming TODOs related to Lazarus and am testing out streaming my desktop while I complete some of these tasks. The tasks in no particular include: * Adding Unity app indicator support to TTrayIcon * Writing a fancy CPU core usage dials/graphs desktop widget * Writing a pascal code for cross platform global hothey hooks * Writing a fancy desktop video capture and streaming application fancy as in: http://cache.getlazarus.org/video/surface_clock_linux.mp4 If anyone cares to chat or view my progress you can do so at the following locations: http://www.codebot/org/live Hit the "Go Big" button to view with a better layout. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tray icon not working on Ubunut
El 06/10/15 a les 23:08, Michael Van Canneyt ha escrit: On Tue, 6 Oct 2015, Anthony Walter wrote: What's the status of TTrayIcon and Ubuntu/Unity? Today I tried to create an application with a TTrayIcon on Ubuntu with the latest LCL sources and the TTrayIcon doesn't show. I think it's been broken for years. It works just fine on Kubuntu. But only with the qt widgetset Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 07.10.2015 00:09, Michael Van Canneyt wrote: Hello, Out of curiosity: Are there any plans to make the LCL (and by extension the IDE itself) High-DPI aware? Working on a Macbook Pro with retina screen (running kubuntu) is OK if you only need to edit code, but as soon as you need to use buttons (any toolbutton or even component palette button), it becomes very difficult. The editor toolbar is next to useless on high DPI. Michael. I do write High-DPI aware LCL application with Lazarus without problems. The IDE itself should at some point in the future support it as well (IMO by default, without any extension). But I don't know if there are some plans about it. I haven't bought a 4K display because of High-DPI problems in Delphi and Lazarus IDEs. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
Ondrej Pokorny wrote: On 07.10.2015 00:09, Michael Van Canneyt wrote: Hello, Out of curiosity: Are there any plans to make the LCL (and by extension the IDE itself) High-DPI aware? Working on a Macbook Pro with retina screen (running kubuntu) is OK if you only need to edit code, but as soon as you need to use buttons (any toolbutton or even component palette button), it becomes very difficult. The editor toolbar is next to useless on high DPI. Michael. I do write High-DPI aware LCL application with Lazarus without problems. The IDE itself should at some point in the future support it as well (IMO by default, without any extension). But I don't know if there are some plans about it. I haven't bought a 4K display because of High-DPI problems in Delphi and Lazarus IDEs. I think Graeme's question about storing DPI in .lfm files might be relevant. As an aside, I've been working on setting up a "cheap" TV as a 3K display for somebody. It's doable, but needs a fairly recent card and end-to-end HDMI. -- Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues] -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On Wed, 7 Oct 2015, Ondrej Pokorny wrote: On 07.10.2015 00:09, Michael Van Canneyt wrote: Hello, Out of curiosity: Are there any plans to make the LCL (and by extension the IDE itself) High-DPI aware? Working on a Macbook Pro with retina screen (running kubuntu) is OK if you only need to edit code, but as soon as you need to use buttons (any toolbutton or even component palette button), it becomes very difficult. The editor toolbar is next to useless on high DPI. Michael. I do write High-DPI aware LCL application with Lazarus without problems. The IDE itself should at some point in the future support it as well (IMO by default, without any extension). But I don't know if there are some plans about it. I haven't bought a 4K display because of High-DPI problems in Delphi and Lazarus IDEs. Would you mind elaborating on this ? I wrote an app which is DPI aware (as per the instructions on the Lazarus wiki). It worked on Linux, Windows 7. Then someone ran it on Windows 8 and 10, and those versions of Windows did something which completely messed up the DPI awareness. I believe it has something to do with the manifest, but I didn't have time to investigate it yet :( Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On Wed, 7 Oct 2015 00:09:54 +0200 (CEST) Michael Van Canneytwrote: >[...] > Are there any plans to make the LCL (and by extension the IDE itself) > High-DPI aware? > Working on a Macbook Pro with retina screen (running kubuntu) is OK if you > only need to edit code, but > as soon as you need to use buttons (any toolbutton or even component palette > button), > it becomes very difficult. The editor toolbar is next to useless on high DPI. How does the VCL work on High-DPI? Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On Wed, 7 Oct 2015, Mattias Gaertner wrote: On Wed, 7 Oct 2015 00:09:54 +0200 (CEST) Michael Van Canneytwrote: [...] Are there any plans to make the LCL (and by extension the IDE itself) High-DPI aware? Working on a Macbook Pro with retina screen (running kubuntu) is OK if you only need to edit code, but as soon as you need to use buttons (any toolbutton or even component palette button), it becomes very difficult. The editor toolbar is next to useless on high DPI. How does the VCL work on High-DPI? All I know is: It's DPI-Aware. Normally, that should cover most cases. I do not know if it is multi-monitor DPI aware. To be correct, in early versions of Delphi, DPI-Awareness was severely broken. So much so that we had to disable it in our applications. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 2015-10-07 08:06, Mark Morgan Lloyd wrote: > I think Graeme's question about storing DPI in .lfm files might be relevant. That's just the tip of the iceberg - what about multi-head systems where each monitor has a different DPI value. Such system are very easy to setup (and least under Linux or FreeBSD) and quite common - at least in developer circles. So how does LCL's "Screen" or "Application" object report DPI values then? Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tray icon not working on Ubunut
On Wed, 7 Oct 2015, Luca Olivetti wrote: El 06/10/15 a les 23:08, Michael Van Canneyt ha escrit: On Tue, 6 Oct 2015, Anthony Walter wrote: What's the status of TTrayIcon and Ubuntu/Unity? Today I tried to create an application with a TTrayIcon on Ubuntu with the latest LCL sources and the TTrayIcon doesn't show. I think it's been broken for years. It works just fine on Kubuntu. But only with the qt widgetset No. I use the GTK 2 widgetset on Kubuntu. I've never used Qt yet. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 2015-10-07 09:25, Michael Van Canneyt wrote: > It worked on Linux, Windows 7. Then someone ran it on Windows 8 and 10, > and those versions of Windows did something which completely messed up > the DPI awareness. Strange, because using the same method as what you, but with a fpGUI test application. Scaling worked perfectly on Linux, FreeBSD, Win2000, WinXP, Win7 and Win8.1 Here are screenshots I just did under Windows 8.1. The application was designed at 96dpi, and I tested with 120 (120%), 144 (150%) and 192 (200%) dpi values. Note how the whole application stays in proportion with clear text and graphics. http://geldenhuys.co.uk/~graemeg/temp/ Granted, under Win8.1 I had to include a manifest file to tell Windows that my application is DPI-aware, otherwise it does scaling (app stays at 96dpi and then Windows zooms the app). Here is the manifest file I used, as as recommended by Microsoft. === http://schemas.microsoft.com/SMI/2005/WindowsSettings;> true === https://msdn.microsoft.com/en-us/library/windows/desktop/dn469266%28v=vs.85%29.aspx Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
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. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On Wed, 7 Oct 2015 12:37:45 +0200 Ondrej Pokornywrote: > On 07.10.2015 12: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. > > IMO the icons are the latest problem. Personally I don't care if the > icons are blurry at higher DPI. It would be absolutely sufficient that > every window and control in the IDE is properly scaled and images are > resized with quality loss. It may be the last problem, but it can be worked on independently, so volunteers can already start. > Maybe the best solution would be to buy a professional set of icons (via > some fund-raising e.g.). I don't think there is a volunteer who would > make 400+ icons for Lazarus... Normal icon sets are about common topics. Most Lazarus icons are hard to map to such icons, because they are either about specific graphics (e.g. TDBListBox, TMySql51Connection) or about abstract topics (jump to implementation). So you need a good deal of custom icons. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 2015-10-07 11:37, Ondrej Pokorny wrote: > It would be absolutely sufficient that > every window and control in the IDE is properly scaled and images are > resized with quality loss. Bad quality icons totally ruin the look of any application. End-users would be pretty darn disappointed as they judge every app visually. > Maybe the best solution would be to buy a professional set of icons (via > some fund-raising e.g.). I don't think there is a volunteer who would > make 400+ icons for Lazarus... Just as was done before (a couple years ago), when all Lazarus icons had an overhaul. Nobody expects a single volunteer to do it all. Before we had many people, myself included, chip in and create a few icons at a time. After a couple weeks or months, they were all completed. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On Wed, 7 Oct 2015 12:40:13 +0100 Graeme Geldenhuyswrote: > On 2015-10-07 12:32, Michael Van Canneyt wrote: >[...] > I don't presume to know the details of the SVG file format, but I > wouldn't be surprised if it includes some reduced (optional) detail on > low resolution rendering. If not yet, then a future extension of the SVG > file format. Maybe the issue is simply that not all SVG viewers are > created equal - some don't support all the features of a SVG file? That was explained in the link Lukasz posted. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tray icon not working on Ubunut
On 2015-10-06 22:08, Michael Van Canneyt wrote: > It's more likely that unity has been broken for years... :) +1 Exactly correct. This was a known problem from 3+ years ago (I remember reading about it years back). Canonical changed something in Unity's tray area, and it broke loads of applications using the tray area. A quick internet search will reveals stacks of reports on this. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On Wed, Oct 7, 2015 at 11:45 AM, Michael Van Canneytwrote: >> How does the VCL work on High-DPI? > > All I know is: It's DPI-Aware. Normally, that should cover most cases. > I do not know if it is multi-monitor DPI aware. > > To be correct, in early versions of Delphi, DPI-Awareness was severely > broken. > So much so that we had to disable it in our applications. When I worked with Delphi, VCL's DPI support was broken and a the retailer's support was frustrated when people kept asking about it. I don't know about the latest situation. Maybe FireMonkey has solved it better. Anyway, I think we should solve it despite of how VCL behaves. In bug tracker there are 9 issues with tag HighDPI. The real number of high DPI issues is much higher. For example this one has many related issue marked : http://bugs.freepascal.org/view.php?id=14688 Somebody should take initiative. I personally don't know what exactly must be done to fix things. One important part of HighDPI would be scalable icons. Sandro Cumerlato had an idea of SVG support for LCL and the whole IDE, but I have not heard of him or his plan for a while. SVG support sounds very good. In fact it is becoming a necessity with all the high resolution gadgets. I have followed KDE project's development over years. They switched to SVG graphs already > 10 years ago and yes their GUIs look good. Who would step in and implement SVG support. I believe Sandro would join if there are other people involved. Regards, Juha -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 10/07/2015 12:24 PM, 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. What about using a vector format to be (rather) independent of the display resolution (as long as it's not too small). -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 2015-10-07 12:02, Michael Van Canneyt wrote: > The document is so big because they provide a lot of background info, Indeed, I downloaded and scanned the document after I posted my previous message. [then went ahead and studied the PDF internal code generated by wPDF ;-)] Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
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. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 2015-10-07 09:45, Michael Van Canneyt wrote: > All I know is: It's DPI-Aware. Normally, that should cover most cases. > I do not know if it is multi-monitor DPI aware. Delphi 10 Seattle (the IDE) is severely broken - everybody on Google+'s Delphi community is complaining about it. All the IDE dialogs are broken, and Embarcadero has no solution yet. There first attempt at a quick fix was broken too. I don't know if this link will work, but here it is: https://plus.google.com/communities/103113685381486591754 I believe your own application will work correctly and VCL is multi-head aware. I don't have Delphi 10 Seattle, so I couldn't test myself. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On Wed, 7 Oct 2015 12:52:53 +0300 Juha Manninenwrote: >[...] > Who would step in and implement SVG support. I believe Sandro would > join if there are other people involved. There are currently about 400 icons in the IDE. We need volunteers to create them either as SVG or as higher resolution image. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 07.10.2015 10:25, Michael Van Canneyt wrote: Would you mind elaborating on this ? I wrote an app which is DPI aware (as per the instructions on the Lazarus wiki). It worked on Linux, Windows 7. Then someone ran it on Windows 8 and 10, and those versions of Windows did something which completely messed up the DPI awareness. I believe it has something to do with the manifest, but I didn't have time to investigate it yet :( I don't use the designer at all (no LFM files). I create every visual component and form in pascal sources and I manually care for proper scaling. This approach slows down a little bit the design but I have to say that I am very happy with it. Actually everything I do is that I use a scaling factor for every control I place on the form. Something like: Button.Width := ScaleMe(100); Button.Height := ScaleMe(20); And yes, I use manifest with DPI awarness enabled. Easy and works like a charm. I have not added support for multiple monitors with different DPI yet, though. But this shouldn't be a big problem. You just have to know that the form moved to another screen and scale every control appropriately. Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 07.10.2015 11:52, Juha Manninen wrote: When I worked with Delphi, VCL's DPI support was broken and a the retailer's support was frustrated when people kept asking about it. I don't know about the latest situation. Maybe FireMonkey has solved it better. Anyway, I think we should solve it despite of how VCL behaves. In bug tracker there are 9 issues with tag HighDPI. The real number of high DPI issues is much higher. For example this one has many related issue marked : http://bugs.freepascal.org/view.php?id=14688 Both VCL and FireMonkey are not automatically DPI aware. In VCL, it is possible with manual approach: https://community.embarcadero.com/blogs/blog-menu/entry/how-to-guide-upgrading-your-delphi-vcl-applications-to-support-4k-displays (Works pretty well.) I don't know the state of the art of FireMonkey, though. The last time I checked it was broken. And since FMX should be scalable by design, this was a NO-GO for me. So I switched to LCL :) Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
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 ? > Regards, > - Graeme - > el es -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On Wed, 07 Oct 2015 12:27:43 +0200 Michael Schnellwrote: > On 10/07/2015 12:24 PM, 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. > What about using a vector format to be (rather) independent of the > display resolution (as long as it's not too small). Maybe the V in SVG stands for vector, maybe not. Mattias -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 2015-10-07 10:52, Juha Manninen wrote: > One important part of HighDPI would be scalable icons. Sandro > Cumerlato had an idea of SVG support for LCL +1 I fully agree with that. I'm actually busy doing exactly that in fpGUI too. I want the default icon set to be SVG only. AggPas (the new fpGUI graphics backend) has excellent SVG support. AggPas is included with Lazarus too, so that could be used there as well. On a side note: I experimented in fpGUI using FontAwesome too - yes, the web technology for scaleable icons. That works very well in fpGUI too. :) Though I still think SVG is the better option. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 07.10.2015 12: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. IMO the icons are the latest problem. Personally I don't care if the icons are blurry at higher DPI. It would be absolutely sufficient that every window and control in the IDE is properly scaled and images are resized with quality loss. Maybe the best solution would be to buy a professional set of icons (via some fund-raising e.g.). I don't think there is a volunteer who would make 400+ icons for Lazarus... Ondrej -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 2015-10-07 11:42, Ondrej Pokorny wrote: > it is possible with manual approach: > https://community.embarcadero.com/blogs/blog-menu/entry/how-to-guide-upgrading-your-delphi-vcl-applications-to-support-4k-displays > (Works pretty well.) OMG - a 38 page guide! Are they joking. I used about 20 lines of source code and my fpGUI apps scale perfectly. The same method (and very similar code) can be applied to LCL too. Bitmap images/icons are the only thing that needs a bit more attention (to keep them sharp), and that is where SVG comes in. Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 2015-10-07 12:09, Lukasz Sokol wrote: > What do you think about > http://www.pushing-pixels.org/2011/11/04/about-those-vector-icons.html ? I'm well aware of the fact [issue] that large icons normally use large detail and small icons should use less. But that comes down to the fact of how the designer designs the icons. KDE and Gnome generally show that a single SVG file can suffice - by sacrificing on "intricate details" is the design. Bottom line - the SVG solution is a lot better that shipping say Lazarus with its 400 icons in 15 different icon resulutions. That ends up with 6000 image files, which is crazy. I already detest Lazarus's default application icon, which comes in at 140KB - larger than the source code of all my "quick test apps". Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 2015-10-07 12:32, Michael Van Canneyt wrote: > Basically, the only excuse for using SVG for icons, is lack of time. They way displays are improving, 16px, 32px graphics will soon go by the way of the DoDo. The smallest resolution images on a 300+dpi (4K plus) display will probably end up being much larger than we see now, so the scaling of image detail should not nearly be as exaggerated as that article implies. I don't presume to know the details of the SVG file format, but I wouldn't be surprised if it includes some reduced (optional) detail on low resolution rendering. If not yet, then a future extension of the SVG file format. Maybe the issue is simply that not all SVG viewers are created equal - some don't support all the features of a SVG file? Regards, - Graeme - -- fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal http://fpgui.sourceforge.net/ My public PGP key: http://tinyurl.com/graeme-pgp -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
> Bottom line - the SVG solution is a lot better that shipping > say Lazarus with its 400 icons in 15 different icon resulutions. That ends up with 6000 image files, which is crazy. I disagree with you. First we dont need 15 different icon set, just few for every DPI something like Android that for our case it will be about 5 more or less. Second we can use SVG and its better but we can make 2 set one detailed and one simple. Designer will do it simply. Third many icons will not a problem for an IDE.With this way we can run Lazarus even in a mobile or a TV! So I think after solving DPI aware IDE we can find someone to make new set icon with SVG and PNG export for different situation. Regards, Ara -- http://www.fastmail.com - Faster than the air-speed velocity of an unladen european swallow -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 10/07/2015 12:36 PM, Mattias Gaertner wrote: Maybe the V in SVG stands for vector, maybe not. Right you are:https://en.wikipedia.org/wiki/Scalable_Vector_Graphics But what I meant was not how the graphics is created but the format stored in the resource to be drawn at run time. -Michael -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Lazarus Release 1.4.4
On 06/10/2015 12:56, Mattias Gaertner wrote: The Lazarus team is glad to announce the release of Lazarus 1.4.4. This release was built with FPC 2.6.4, same as the previous release Lazarus 1.4.2. Forgot to mention, checksums of the original files are on our website: http://www.lazarus-ide.org/index.php?page=checksums -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
Am 07.10.2015 13:30 schrieb "Graeme Geldenhuys" < mailingli...@geldenhuys.co.uk>: > > On 2015-10-07 12:09, Lukasz Sokol wrote: > > What do you think about http://www.pushing-pixels.org/2011/11/04/about-those-vector-icons.html ? > > I'm well aware of the fact [issue] that large icons normally use large > detail and small icons should use less. But that comes down to the fact > of how the designer designs the icons. KDE and Gnome generally show that > a single SVG file can suffice - by sacrificing on "intricate details" is > the design. In our company we do the icons for each resolution by hand and it definitely makes a notable difference whether the icon is downscaled from a detailed one or handcrafted with less details. > Bottom line - the SVG solution is a lot better that shipping say Lazarus > with its 400 icons in 15 different icon resulutions. That ends up with > 6000 image files, which is crazy. The .ico file format supports multiple resolutions. > I already detest Lazarus's default application icon, which comes in at > 140KB - larger than the source code of all my "quick test apps". On Windows you can only use .ico files for application icons and the default icon is supposed to look good in all zoom levels of the explorer... Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tray icon not working on Ubunut
El 07/10/15 a les 10:30, Michael Van Canneyt ha escrit: It works just fine on Kubuntu. But only with the qt widgetset No. I use the GTK 2 widgetset on Kubuntu. I've never used Qt yet. Really, it doesn't work here with the gtk2 widgetset, only with qt. kubuntu 15.04, x86_64, with plasma 5.3.2 Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tray icon not working on Ubunut
El 07/10/15 a les 17:08, Luca Olivetti ha escrit: El 07/10/15 a les 10:30, Michael Van Canneyt ha escrit: It works just fine on Kubuntu. But only with the qt widgetset No. I use the GTK 2 widgetset on Kubuntu. I've never used Qt yet. Really, it doesn't work here with the gtk2 widgetset, only with qt. kubuntu 15.04, x86_64, with plasma 5.3.2 Though the same program, with the gtk2 widgetset, shows the tray icon in mageia 5 (with plasma 4.3.something). Bye -- Luca Olivetti Wetron Automation Technology http://www.wetron.es/ Tel. +34 93 5883004 (Ext.3010) Fax +34 93 5883007 -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] lazcontrols filters
What do you think about moving TextHint related things from TCustomEdit to TWinControl to make TextHint available for all TWinControl descendants, for example TComboBox. In this case developers may have unified look of controls on a single form. Anyway TextHint for ComboBoxes would be welcome. 2015-10-05 18:40 keltezéssel, Bart írta: > Please post patches (in bugtracker) for controls (TCustomEdit > descendants or compound controls that have a TCustomEdit in it) that > do not pubish these properties. -- Péter Gábor p...@freemail.hu -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
On 10/07/2015 06:24 AM, Mattias Gaertner wrote: On Wed, 7 Oct 2015 12:52:53 +0300 Juha Manninenwrote: [...] Who would step in and implement SVG support. I believe Sandro would join if there are other people involved. There are currently about 400 icons in the IDE. We need volunteers to create them either as SVG or as higher resolution image. is there not a conversion tool that can convert them from what they are now (raster??) to SVG format? a quick look shows there's various ways but it seems that many simply embed the original image within the SVG output... the good ones that work seem to be manual (eg: inkscape, adobe illustrator)... -- NOTE: No off-list assistance is given without prior approval. *Please keep mailing list traffic on the list* unless private contact is specifically requested and granted. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tray icon not working on Ubunut
Hi, > There is your answer... > If the desktop environments start to break standards, there is little we can > do. There is an explanation here: http://blog.martin-graesslin.com/blog/2014/03/system-tray-in-plasma-next/ and http://blog.martin-graesslin.com/blog/2014/06/where-are-my-systray-icons/ Running "wmsystemtray --non-wmaker --bgcolor white" as indicated in the second blog page and the TTrayIcon go there. Patrick -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tray icon not working on Ubunut
In the future one thing we can do, if the desktop environment is popular enough (I'd argue that Ubuntu is the most popular Linux for desktop users distribution) is: * Make a note of the problem * Provide links to resources where people could start if they want to work on a fix Regarding point #1, on this page I see nothing noting the problem, even though it;s been in existence since Unity was made the default interface in 2011 (more than four years ago): http://wiki.freepascal.org/TrayIcon#Help.2C_Bug_Reporting_and_Feature_Request Regarding point #2, here is some information which we could maybe link to in the wiki or some other place of prominence: https://wiki.ubuntu.com/DesktopExperienceTeam/ApplicationIndicators -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] lazcontrols filters
On 10/7/15, Péter Gáborwrote: > What do you think about moving TextHint related things from TCustomEdit > to TWinControl to make TextHint available for all TWinControl > descendants, for example TComboBox. It would be Delphi incompatible. AFAIK TextHint is introduced in TCustomEdit there. Bart -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tray icon not working on Ubunut
On Wed, 7 Oct 2015, Luca Olivetti wrote: El 07/10/15 a les 17:08, Luca Olivetti ha escrit: El 07/10/15 a les 10:30, Michael Van Canneyt ha escrit: It works just fine on Kubuntu. But only with the qt widgetset No. I use the GTK 2 widgetset on Kubuntu. I've never used Qt yet. Really, it doesn't work here with the gtk2 widgetset, only with qt. kubuntu 15.04, x86_64, with plasma 5.3.2 Though the same program, with the gtk2 widgetset, shows the tray icon in mageia 5 (with plasma 4.3.something). There is your answer... If the desktop environments start to break standards, there is little we can do. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] High-DPI aware LCL ?
Am 07.10.2015 15:20 schrieb "Michael Schnell": > > On 10/07/2015 12:36 PM, Mattias Gaertner wrote: >> >> Maybe the V in SVG stands for vector, maybe not. > > Right you are:https://en.wikipedia.org/wiki/Scalable_Vector_Graphics > > But what I meant was not how the graphics is created but the format stored in the resource to be drawn at run time. You /do/ know that a part of SVG is also the file format, namely XML? Why invent something new when it's already there... (And yes, resources can store arbitrary files) Regards, Sven -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
Re: [Lazarus] Tray icon not working on Ubunut
On Wed, 7 Oct 2015, Luca Olivetti wrote: El 07/10/15 a les 10:30, Michael Van Canneyt ha escrit: It works just fine on Kubuntu. But only with the qt widgetset No. I use the GTK 2 widgetset on Kubuntu. I've never used Qt yet. Really, it doesn't work here with the gtk2 widgetset, only with qt. kubuntu 15.04, x86_64, with plasma 5.3.2 I use plasma 4. Michael. -- ___ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus