Login  Register

icons

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

icons

ravas
870 posts
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
| More
Print post
Permalink

Re: icons

dxli
2003 posts
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
| More
Print post
Permalink

Re: icons

ravas
870 posts
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.