labwc/include/img
tokyo4j 45f73b58a1 img: remove padding_x from lab_img_render()
padding_x in lab_img_render() was just to make sure window icons in the
titlebar doesn't get too close to adjacent buttons and it didn't felt
clean. To remove it from lab_img, this commit changes the size of window
icon buffers from (window.button.width)x(window.button.height) to
(window.button.width * 0.8)x(window.button.height) and horizontally
slide it by (window.button.width * 0.1) to keep the horizontal padding.

Note that the size of the hitbox for a window icon is kept the same and
nothing is changed from user's perspective.
2025-01-25 07:27:21 +09:00
..
img-png.h ssd: rework titlebar button rendering 2024-12-23 18:11:32 +09:00
img-svg.h img: remove padding_x from lab_img_render() 2025-01-25 07:27:21 +09:00
img-xbm.h ssd: rework titlebar button rendering 2024-12-23 18:11:32 +09:00
img-xpm.h ssd: rework titlebar button rendering 2024-12-23 18:11:32 +09:00
img.h img: remove padding_x from lab_img_render() 2025-01-25 07:27:21 +09:00