mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-03 12:24:17 +01:00
Better icon scale
The icons should be scaled if their size is "max_size - ~3 pixels". Tipically, max_size is 64 pixels. With the current wIconValidateIconSize the max size for an icon is "64 pixels", then the icon don't have border and is ugly. This problem is in the dock icons and in the switchpanel. The new wIconValidateIconSize function don't use the fixel value of 64 pixels, uses the argument max_size to get the final icon size. The icon is scaled holding the aspect ratio and reserve ~2 or ~3 pixels to hold left space to the icon border. Now the icon is inside the icon space, with border. This patch removes the preprocessor option of DONT_SCALE_ICONS, because all the icons should be scaled if needed, to hold a beatiful interface.
This commit is contained in:
committed by
Carlos R. Mafra
parent
44c9ee694d
commit
fccde3b7e6
@@ -99,9 +99,6 @@
|
||||
*/
|
||||
#undef IGNORE_PPOSITION
|
||||
|
||||
/* Do not scale application icon and miniwindow icon images */
|
||||
#undef DONT_SCALE_ICONS
|
||||
|
||||
/*
|
||||
* The following options WILL NOT BE MADE RUN-TIME. Please do not request.
|
||||
* They will only add unneeded bloat.
|
||||
|
||||
Reference in New Issue
Block a user