<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
There may be a simpler means of using QtStylesheets to adjust the<br>
spacing between other icons and toolbar edges [2].<br></blockquote><div><br></div><div>I've always kept the QTStylesheets in my to-read list. It seems a very flexible choice.</div><div>I suppose that setting up its support in QGis would let us keep UI theming loosely coupled from code. Is it right?</div>
<div><br></div><div>giovanni</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
<br>
[0] <a href="http://qt-project.org/doc/qt-4.7/qtoolbar.html" target="_blank">http://qt-project.org/doc/qt-4.7/qtoolbar.html</a><br>
[1] <a href="https://github.com/qgis/Quantum-GIS/blob/master/src/app/qgisapp.cpp#L1483" target="_blank">https://github.com/qgis/Quantum-GIS/blob/master/src/app/qgisapp.cpp#L1483</a><br>
[2] <a href="http://qt-project.org/doc/qt-4.7/stylesheet-examples.html#id-756de882-8623-4e88-81b7-eb5bb800d3ca" target="_blank">http://qt-project.org/doc/qt-4.7/stylesheet-examples.html#id-756de882-8623-4e88-81b7-eb5bb800d3ca</a><br>

<span class="HOEnZb"><font color="#888888"><br>
Larry<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
><br>
> 2012/7/29 Larry Shaffer <<a href="mailto:larrys@dakotacarto.com">larrys@dakotacarto.com</a>><br>
>><br>
>> Hi Robert and Giovanni,<br>
>><br>
>> On Sat, Jul 28, 2012 at 2:53 PM, Robert Szczepanek <<a href="mailto:robert@szczepanek.pl">robert@szczepanek.pl</a>><br>
>> wrote:<br>
>> > Hi Giovanni,<br>
>> ><br>
>> > On 28.07.2012 16:07, G. Allegri wrote:<br>
>> >><br>
>> >> I've voted for the GIS theme, though I share my opinion on icon size.<br>
>> >> I work with various GIS and CAD software (both OS and commercial) and<br>
>> >> I've always found a bit strange the default 24x24 icon size of QGis.<br>
>> >> Most of the other softwares use 16x16 icons.<br>
>> ><br>
>> ><br>
>> > 24x24 icon size is result of some preliminary discussion and research.<br>
>><br>
>> My experience from Mac apps is the opposite from Giovanni's. Most apps<br>
>> default with 32x32 (or sometimes larger) icons, with the standard OS X<br>
>> Cocoa app toolbar customization of 'use small size'. That option<br>
>> usually drops it down to 24x24, though the developer decides the size.<br>
>> There is usually not a third choice.<br>
>><br>
>> So, for me, on my iMac with its too-large 27" screen, the opposite<br>
>> scaling issue up to 32x32 also exhibits the poor Qt scaling (blurry).<br>
>><br>
>> >> I know that one can change the icon size, but having just the 24x24<br>
>> >> icons the scaling produces blurs and keeps the icon padding<br>
>> >> proportions,<br>
>> >> while with 16x16 it could be reduced to provide more room.<br>
>> ><br>
>> ><br>
>> > Rescaling is not good idea, even from SVG. At this size scalability is<br>
>> > very<br>
>> > limited.<br>
>> ><br>
>> >> Here are two screenshots of Qgis with 16x16 icons [1] and one from a<br>
>> >> commercial software with the same icon size [2]. Notice the different<br>
>> >> spacing, and the crisp icons.<br>
>> >><br>
>> >> I suggest to package 16x16 version for the icons, and revise the icon<br>
>> >> padding<br>
>> ><br>
>> ><br>
>> > You are absolutely right. There should be additional 16x16px version.<br>
>> > With<br>
>> > very limited spare time my options are:<br>
>> > 1/ Try to keep project's progress (GRASS and QGIS) and design missing<br>
>> > icons.<br>
>> > 2/ Make them nicer - more colourful, 2.5D, etc.<br>
>> > 3/ Prepare icons for 16x16 and 32x32px<br>
>><br>
>> In my own experimentation with Qt icon scaling, I have found scripting<br>
>> ImageMagick or Photoshop to do the up/down-scaling, with or without a<br>
>> bit of sharpening applied afterword, to produce better quality icons<br>
>> than the Qt scaling. It may be good enough quality to preclude<br>
>> re-creating your icons for the other sizes.<br>
>><br>
>> Another option is to design icons with fewer details and higher<br>
>> contrast so that they still look OK when scaled (see MSSQL icon in<br>
>> Giovanni's QGIS example). I believe this would also address the issue<br>
>> of some icon groups looking too busy due to too much detail, example:<br>
>> the 'Add * Layer' icons of your set.<br>
>><br>
>> Having multiple size sets for icons means some naming conventions and<br>
>> coding to switch between the sets; whereas now, the code simply asks<br>
>> Qt to handle the scaling by setting a toolbar's icon size in one call<br>
>> (as an example). Another good reason to go with icons that can cope<br>
>> with Qt's scaling: no code changes.<br>
>><br>
>> Switching between size sets also means any third party icons (e.g.<br>
>> plugins), that don't provide multiple icon versions, will have their<br>
>> icons scaled. This would end up with users seeing different quality<br>
>> between core and plugin toolbars, though I don't know how much this<br>
>> can be avoided regardless of scaling issues. If moving to multiple<br>
>> icon size sets, there might have to be an additional requirement of<br>
>> multiple icon sizes for third-party plugins in the official<br>
>> repository, if overall higher icon quality is desired.<br>
>><br>
>> So, my vote here for your icon set would be to go with only the 24x24<br>
>> size, reduce the complexity of the most complex icons, increase<br>
>> overall contrast where needed, and add any 2.5 effects to make them<br>
>> pop a bit more (but not if such an effect causes the blurry scaling<br>
>> problem or poor quality to occur).<br>
>><br>
>><br>
>> Regards,<br>
>><br>
>> Larry<br>
>><br>
>><br>
>> > And I decided to follow this priority: 1 -> 2 -> 3.<br>
>> > I hope you understand my point of view.<br>
>><br>
>><br>
>><br>
>> > regards,<br>
>> > Robert<br>
>> ><br>
>> >> giovanni.<br>
>> >><br>
>> >> [1] <a href="http://img16.imageshack.us/img16/1442/qgis16x16.png" target="_blank">http://img16.imageshack.us/img16/1442/qgis16x16.png</a><br>
>> >> [2] <a href="http://img140.imageshack.us/img140/2697/other16x16.png" target="_blank">http://img140.imageshack.us/img140/2697/other16x16.png</a><br>
><br>
><br>
</div></div></blockquote></div><br>