Login  Register

Re: Need an icon for "Help Layer" in the layer widget.

Posted by dxli on Feb 01, 2015; 12:01am
URL: https://forum.librecad.org/Need-an-icon-for-Help-Layer-in-the-layer-widget-tp5710864p5711039.html

Your new construction layer in layerwidget works smoothly for me.

I modified the context menu: https://github.com/LibreCAD/LibreCAD/commit/805279cedefd3e6342b52ebbe8b971cbe9c91b95

also, whenever new widgets are added with a parent widget, its destructor will be called by its parent's destructor, so I commented out the "delete layerView" line in dtor. ( http://qt-project.org/doc/qt-4.8/qwidget.html#QWidget )

Please review my commit.

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