UI: Improve menu dropshadow #111794

Merged
Harley Acheson merged 7 commits from lone_noel/blender:menu-dropshadow into main 2023-11-24 22:50:32 +01:00

7 Commits

Author SHA1 Message Date
Harley Acheson 8a2323ed46 Formatting change. comments. Remove one unneeded include.
buildbot/vexp-code-patch-coordinator Build done. Details
2023-11-24 12:56:20 -08:00
Harley Acheson c1a147d7f5 Merge branch 'main' of projects.blender.org:blender/blender into pr111794 2023-11-24 12:08:49 -08:00
Leon Schittek b7a74f0d99 Remove `ui_draw_box_shadow`
Replace its only use with `ui_draw_dropshadow`.
2023-11-09 23:29:35 +01:00
Leon Schittek 860cd18ee3 Adjust `ui_draw_dropshadow` to support transparency
and reuse it for menu dropshadows.
2023-11-09 23:29:35 +01:00
Leon Schittek 969bb87485 Draw the shadow for small corner radii the same as for sharp corners. 2023-11-09 23:29:35 +01:00
Leon Schittek 595fabecb7 Improve clamping of the shadow width
This avoids small clipping issues in the shadow, on small menus with
large corner radii.
2023-11-09 23:29:35 +01:00
Leon Schittek f51b26e0ae UI: Improve menu dropshadow
Adjust the shadow around pulldowns and popups to remove artifacts around
rounded top corners.

Ref #93371
2023-11-09 23:29:35 +01:00