Re: Need an icon for "Help Layer" in the layer widget.
Posted by
stranger573 on
Jan 25, 2015; 2:34am
URL: https://forum.librecad.org/Need-an-icon-for-Help-Layer-in-the-layer-widget-tp5710864p5711018.html
OK. It's your choice. Let it be so.
The advantage of SVG I know. Therefore I it put.
The size of the PNG files I made as real display, to avoid unnecessary scaling in this case. I see that LibreCAD is used, the scaling of the image 150x150. But why it is there, where only one fixed size? The scaling of the large size works well for 32x32 icons and more. But for small icons this is a bad way, this way you can get blur a blot instead of the image. To avoid this requires the alignment of the image on the pixel grid. Qt Framework is not capable of it properly. No matter what large image scaling is done and the thickness of the line too.
Moreover, in this table, the Qt Framework is bad. The image is scaled to the width of the column, ignoring the margins. As a result, we have cropped the image on the right. It is now for the printer icons. Eye icon cropped on the right too. In addition, now the icons are different sizes in the same string. It's not neat looks.
If there is a need to get icons for other sizes, it is better to use sets with different fixed sizes (this is not difficult if you have the source SVG) and add the appropriate settings. It is very desirable to make in the future, because the current icons are very small on high-resolution displays.
What Qt can do as inactive, I also known. But I used different images for active and inactive. So not used it. So it turns more balanced visible icon sizes.
This is my opinion only. You are not obliged to follow it.
LordOfBikes wrote
stranger573,
with my refactoring of construction layer I've added your SVG from Jan. 1st and License file to LibreCAD repository. I used the icon for construction layer by now. I think it's better than the italic version from latest SVG. Also the italic version is prepared for very low resolution only.
The advantage of using SVG is, to have a base for lossless resizing. So we use vector graphics, that looks good at 150x150 with a line width that is thick enough to be visible when reduced to 16x16 icon size or less.
I've created a 150x150 pixel PNG for the icon. Scaling and smoothing to the needed size is done by the Qt Framework. Even the disabled state is done by Qt, there's no need to create a separate image for it. Thus we can use the one PNG image to load icons of different size if needed.
For the other icons I think, it's another task for refactoring, that should not be limited to layer list. Iirc there is a feature request or a thread in the forum about free selectable icon themes for the whole GUI. I think this it not work in progress now, but worth to keep in mind.
Armin