icons

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

icons

ravas
It seems like we need some organization of the res folder.

https://github.com/LibreCAD/LibreCAD/tree/master/librecad/res

We have filenew.png in three different folders.

---

What is the reason for the icon size 150x150?
Is this the suggested size for new icons?
Reply | Threaded
Open this post in threaded view
|

Re: icons

dxli
does it worth to create the PNG files from SVG automatically by qmake? or even moving to SVG icons.

ravas wrote
It seems like we need some organization of the res folder.

https://github.com/LibreCAD/LibreCAD/tree/master/librecad/res

We have filenew.png in three different folders.

---

What is the reason for the icon size 150x150?
Is this the suggested size for new icons?
Reply | Threaded
Open this post in threaded view
|

Re: icons

ravas
In theory SVG would remove any limitation on custom icon size.

I've been thinking about: https://github.com/LibreCAD/LibreCAD/issues/102
My first thought is to keep using the Qt resource system for default icons.
Then, using my new QMap<QString, QAction*>, I am imagining two possibilities:

1. users could pick a directory and name the files the same as the key string;
then a function walks the directory and analyzes the file names and uses the map to change icon.

2. users could pick a .txt file that maps the key string to the icon path
DrawCircle, c:\icons\circles.png
DrawLine, ...

#1 seems easier to use. If you want to change an icon you just replace the file in your folder.
#2 doesn't require files to be in the same folder; and the file name can be anything
so you don't need to worry about overwritting and keeping backups of the previous version.