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

Added icon feature option to WPrefs: Enforce icon margin

The current findBestIcon function usually selects an icon image
that almost completely fills up the (default) 64x64 pixels of an
icon. As Dan noted in the function, the icon images should use only
75% of the available space, which would result in room for the
miniwindow title and better overall aesthetics.

This feature option provides for enabling such an automatic "icon
shrinking" functionality.

Note: This commit only introduces the new option, not the actual
      image shrinking.
This commit is contained in:
Tim Taenny
2019-01-31 17:34:29 +01:00
committed by Carlos R. Mafra
parent 9b5eaa3d3e
commit d6c1ac3ecf
3 changed files with 15 additions and 1 deletions

View File

@@ -376,6 +376,7 @@ extern struct WPreferences {
char disable_root_mouse; /* disable button events in root window */
char auto_focus; /* focus window when it's mapped */
char *icon_back_file; /* background image for icons */
char enforce_icon_margin; /* auto-shrink icon images */
WCoord *root_menu_pos; /* initial position of the root menu*/
WCoord *app_menu_pos;