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:
committed by
Carlos R. Mafra
parent
854ae58305
commit
07a0639c93
@@ -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"),
|
||||
|
||||
Reference in New Issue
Block a user