* * *

Author Topic: button glyphs  (Read 654 times)

lazer

  • New member
  • *
  • Posts: 25
button glyphs
« on: October 11, 2017, 02:42:43 pm »
Hi,

Delphi provided a set of glyphs for use with TspeedButton etc.  , Lazarus provides a dialoque to go and select them but I can't find anything supplied. ( Unless I'm missing them ).

Are there any resources available that will fit the requirements of these button glyphs ?

TIA.

Handoko

  • Hero Member
  • *****
  • Posts: 1639
  • My goal: build my own game engine using Lazarus
Re: button glyphs
« Reply #1 on: October 11, 2017, 02:52:12 pm »
Maybe you can try TBitBtn. You can change the property "Kind" to change the image.

wp

  • Hero Member
  • *****
  • Posts: 3798
Re: button glyphs
« Reply #2 on: October 11, 2017, 03:03:22 pm »
Delphi provided a set of glyphs for use with TspeedButton etc.  , Lazarus provides a dialoque to go and select them but I can't find anything supplied. ( Unless I'm missing them ).
Your words are a bit ambiguous: "Anything supplied" - does this mean: "I don't find the property to which I have to assign the glyphs"? - this would be the property Glyph of the TSpeedButton or TBitBtn (TButton does not support a glyph). Or does it mean: "I cannot find any glyphs within the Lazarus distribution which I could use" - browse the directory "Images" of the Lazarus installation folder. Or use any other icon site in the Internet, e.g. http://www.famfamfam.com/lab/icons/silk/, http://p.yusukekamiyamane.com/, https://icons8.com/icon/new-icons/all, plus many more. Transparent png images give the best image quality.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

lazer

  • New member
  • *
  • Posts: 25
Re: button glyphs
« Reply #3 on: October 11, 2017, 03:39:45 pm »
/usr/lib64/lazarus/images/

That's the menu icons etc for Laz IDE, but there is some useful stuff there.

I was thinking of set of general purpose glyphs like Delphi provided. I guess I may have to dig around, now that I know I'm not just missing something already provided.

Thanks.

PatBayford

  • Jr. Member
  • **
  • Posts: 83
Re: button glyphs
« Reply #4 on: October 12, 2017, 02:16:36 am »
Lazarus provides a limited set of glyphs, sadly, spread all over the place! You will need to find a suitable glyph library on the Internet, draw your own, or steal the Delphi ones.
Try this lot first http://www.iconarchive.com/tag/button
« Last Edit: October 12, 2017, 02:21:41 am by PatBayford »
Lazarus 1.6.4 FPC 3.0.2 SVN 54278 Windows 10 64bit

lazer

  • New member
  • *
  • Posts: 25
Re: button glyphs
« Reply #5 on: October 12, 2017, 05:03:09 am »
thanks.

I won't need to steal the Delphi ones, I paid for Delphi at least twice in various versions. They did provide a fairly good selection of basic icons, so I may just have to install and extract.

The link is quite good but all the fancy shading ends up reducing clarity when shrunk down to 16x16.

This would definitely be resource worth adding to Lazarus if someone wanted to dig out a set of freely reusable glyphs. I may suggest this on Laz ML.



wp

  • Hero Member
  • *****
  • Posts: 3798
Re: button glyphs
« Reply #6 on: October 12, 2017, 05:16:47 pm »
This would definitely be resource worth adding to Lazarus if someone wanted to dig out a set of freely reusable glyphs. I may suggest this on Laz ML.
I don't think that this is a good idea. The next idea of another user would be: "I don't like the outdated XYZ icon set. Please add a more modern one." etc. The windows installer, for example, already has more than 125 MB, and we should not waste disk size, server space, bandwidth, download time etc for something which everybody can find who knows how to execute an internet search.
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

lazer

  • New member
  • *
  • Posts: 25
Re: button glyphs
« Reply #7 on: October 12, 2017, 07:06:01 pm »
Well even if they are not latest 'mode' in icons it would be good to have a basic working set like Borland provided.

Anyone can search for "buttons" or "icons" but like the site suggested above , they are often not suitable. Finding ones that work well at 16x16 could be wasted duplicate effort by everyone who chooses to use Lazarus.

If your package is 126MB, you really are not going notice the difference of a couple of dozen 16x16 glyphs which weigh in at around 500 to 600 BTYES each.

2 dozen x 500B = 12kB , that is FOUR ORDERS of magnitude smaller than your current package size !

Really not a credible argument.


Handoko

  • Hero Member
  • *****
  • Posts: 1639
  • My goal: build my own game engine using Lazarus
Re: button glyphs
« Reply #8 on: October 12, 2017, 07:40:39 pm »
The link is quite good but all the fancy shading ends up reducing clarity when shrunk down to 16x16.

Did you manually resize it to 16x16? Icon files (*.ico) usually provide multiple size images in a single file. Usually you should download the *.ico version, not the png file. Some icon artists provides multiple png files with different sizes that you can choose, for example:
http://www.iconarchive.com/show/rounded-square-icons-by-hopstarter/Button-Delete-icon.html
It has the sizes ranging from 16x16 to 128x128.

The file size of that icon file is 182kb, that because it contains multiple size images. If Lazarus download includes free icons, I would like it comes with the multiple size versions because I personally only use at least 64x64 pixels or above.

valdir.marcos

  • Sr. Member
  • ****
  • Posts: 254
Re: button glyphs
« Reply #9 on: October 12, 2017, 08:10:46 pm »
Some icon artists provides multiple png files with different sizes that you can choose, for example:
http://www.iconarchive.com/show/rounded-square-icons-by-hopstarter/Button-Delete-icon.html
It has the sizes ranging from 16x16 to 128x128.
The file size of that icon file is 182kb, that because it contains multiple size images.

If Lazarus download includes free icons, I would like it comes with the multiple size versions because I personally only use at least 64x64 pixels or above.
+1

5% of 125mb  = 6.5mb.
I believe that up to 5mb of free images (icons included) would polish Lazarus without being that heavy. It would be worth the price of more mb for more quality.

If anything above 125mb would be too much, Lazarus site could provide an easy optional extra download link for images on SourceForge such as  https://sourceforge.net/projects/lazarus/files/Lazarus%20Windows%2032%20bits/Lazarus%201.6.4/  files.
« Last Edit: October 12, 2017, 08:17:27 pm by valdir.marcos »

lazer

  • New member
  • *
  • Posts: 25
Re: button glyphs
« Reply #10 on: October 12, 2017, 08:40:06 pm »
Quote
http://www.iconarchive.com/show/rounded-square-icons-by-hopstarter/Button-Delete-icon.html
It has the sizes ranging from 16x16 to 128x128.

this is exactly the problem with all the on line resources I have seen so far. They do funky contoured , shaded and sculpted buttons which look really cool at 128x128 and automatically resize then to a dozen different resolutions without reworking them.

The result is useless and illegible at 16x16.
http://icons.iconarchive.com/icons/hopstarter/rounded-square/16/Folder-Video-icon.png
http://icons.iconarchive.com/icons/hopstarter/rounded-square/16/Email-icon.png

they are fine for buttons on web pages but not suitable for glyphs on button controls , which is what I started this thread about.

PatBayford

  • Jr. Member
  • **
  • Posts: 83
Re: button glyphs
« Reply #11 on: October 12, 2017, 10:35:02 pm »
Your point is well made lazer - most of the available glyph sets are indeed intended for web pages, and don't scale well. I must admit to having used/abused the Delphi images, even if only as a starting point for editing, both in Delphi and Lazarus.
There used to be several really good Icon designers/resource grabbers available, although my experience is ONLY with Windows versions. Maybe a worthwhile project for the Lazarus community?
Lazarus 1.6.4 FPC 3.0.2 SVN 54278 Windows 10 64bit

wp

  • Hero Member
  • *****
  • Posts: 3798
Re: button glyphs
« Reply #12 on: October 12, 2017, 11:20:04 pm »
[...]2 dozen[...]
Two dozen? I quickly collected even more into an image strip. The pictures were taken from the various image folders found within the Lazarus distribution and were selected having general-purpose usage in mind. So really, no need for an extra collection of icons bundled with Lazarus. Did you guys ever browse through the Lazarus folders?
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

 

Recent

Get Lazarus at SourceForge.net. Fast, secure and Free Open Source software downloads Open Hub project report for Lazarus