summaryrefslogtreecommitdiff
path: root/cui
diff options
context:
space:
mode:
authorMike Kaganski <mike.kaganski@collabora.com>2022-01-03 19:38:53 +0300
committerMike Kaganski <mike.kaganski@collabora.com>2022-01-04 08:44:09 +0100
commit1be170d0629cf761f0ee4173007a3c021966546e (patch)
treed46080c76e3d19304ec69164231639c204e236bd /cui
parent71141a78f47f9a70aae986959ac80f19ce0816fa (diff)
tdf#146551: improve native checkmark and bullet drawing on Windows
This takes marks' borders into account, and removes some hacks used previously in place of those. It introduces one new hack - adjusting only rectangle's top in ImplPaintCheckBackground - to workaround one pixel less height of selected images background on Windows, caused by the current method of drawing that background, abusing toolbar button for that on all platforms. Ideally, drawing it (or the whole image) should be implemented using OutputDevice::DrawNativeControl with dedicated ControlPart value, which would enable use of ImplDrawTheme with MCB_BITMAP menu background state on Windows. I have tested on Windows 10 (using both default and Skia drawing, with normal and scaled UI), and on Ubuntu with gtk3, x11, and kf5 plugins (since common code is affected); it seems to give expected results on all of them. Change-Id: I677c3af30fedc608dbc6b391d5dbbbdb141da0d3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127909 Tested-by: Jenkins Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
Diffstat (limited to 'cui')
0 files changed, 0 insertions, 0 deletions