]> git.mdlowis.com Git - proto/labwc.git/commit
theme: draw hover overlay in the correct scale
authortokyo4j <hrak1529@gmail.com>
Thu, 3 Oct 2024 00:23:50 +0000 (09:23 +0900)
committerJohan Malm <johanmalm@users.noreply.github.com>
Thu, 3 Oct 2024 20:24:19 +0000 (21:24 +0100)
commitfb0c7a29c68b2862ff9920bf53863a42a952b85d
tree04d2120aeff6771bd4fc17c211ca10ff7400e3a2
parentc06b86c345f27ac71c2c410e70117f51a1b51755
theme: draw hover overlay in the correct scale

The hover icon buffer on which the hover overlay is draw can be larger
than the button size when a large non-hover icon is provided by user. In
this case, we should scale up all the coorinates that are used to draw
the hover overlay. Before this commit, corner radius and padding.width
are not scaled correctly.

This commit fixes it by scaling the cairo context with cairo_scale()
when drawing the hover overlay.
src/theme.c