... | ... | @@ -29,6 +29,14 @@ All icons should be provided in multiple sizes for each action or control elemen |
|
|
|
|
|
The Form Editor of the Qt Creator does not provide means how to assign multiple icon sizes for each defined action or control element. Different icon sizes must thus be set from C++ code.
|
|
|
|
|
|
Currently we don't recommend the direct usage of SVG icons/pictures directly in the application (e.g. they look blurry on macOS). When rescaling then the Qt SVG renderer causes artefacts to occur on edges. The recommended approach would be to generate PNG icons in desired sizes and use those images instead of the SVG originals. Currently we use square-shaped icons with the edge length of 16, 24 and 32 pixels.
|
|
|
|
|
|
When converting SVG to PNG don't use ImageMagick. The [described procedure](https://stackoverflow.com/questions/9853325/how-to-convert-a-svg-to-a-png-with-image-magick) creates blurry unusable images. You may [use Inkscape](http://wiki.inkscape.org/wiki/index.php/Tricks_and_tips) to generate PNG files of desired resolution, e.g.:
|
|
|
|
|
|
``` shell
|
|
|
inkscape -z -e readcol.png -w 32 -h 32 readcol.svg
|
|
|
```
|
|
|
|
|
|
### Window and Dialogue Size
|
|
|
|
|
|
Dialogue sizes should be derived from the size of the used font. The actual mechanism how to accomplish this is not yet tested.
|
... | ... | |