1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-19 12:28:22 +01:00

Don't shrink icons in switchpanel.

Icons in the switchpanel are constrained to the value of the IconSize
preference but the grid in which they are arranged is fixed at 64 pixels.
If IconSize is less than 64x64 the panel will show smaller icons with a
wide spacing, which looks pretty stupid.

Fix it by forcing the switchpanel to attempt to load images at the size
it's going to use.  The icon it actually gets may of course still be
smaller.
This commit is contained in:
Iain Patterson
2012-02-14 13:13:55 +00:00
committed by Carlos R. Mafra
parent 854ae58305
commit 07a0639c93
7 changed files with 15 additions and 15 deletions

View File

@@ -966,7 +966,7 @@ void wDefaultsCheckDomains(void* arg)
/* Update the panel image if changed */
/* Don't worry. If the image is the same these
* functions will have no performance impact. */
image = wDefaultGetImage(scr, "Logo", "WMPanel");
image = wDefaultGetImage(scr, "Logo", "WMPanel", wPreferences.icon_size);
if (!image) {
wwarning(_("could not load logo image for panels: %s"),