Fix #111017: Gap between color square and frame of box in the color ramp #111168
Closed
Philipp Oeser
wants to merge 1 commits from
When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
lichtwerk/blender:111017
into main
pull from: lichtwerk/blender:111017
merge into: blender:main
blender:main
blender:brush-assets-project
blender:fix-121021
blender:blender-v3.3-release
blender:partial-write-refactor
blender:universal-scene-description
blender:blender-v4.1-release
blender:blender-v3.6-release
blender:blender-v3.6-temp_wmoss_animrig_public
blender:temp-sculpt-dyntopo
blender:gpencil-next
blender:anim/animation-id-113594
blender:blender-v4.0-release
blender:blender-projects-basics
blender:bridge-curves
blender:sculpt-blender
blender:asset-browser-frontend-split
blender:asset-shelf
blender:tmp-usd-python-mtl
blender:tmp-usd-3.6
blender:blender-v3.5-release
blender:blender-v2.93-release
blender:realtime-clock
blender:sculpt-dev
blender:bevelv2
blender:xr-dev
When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
1 Commits
Author | SHA1 | Message | Date |
---|---|---|---|
Philipp Oeser | 45f26d05c5 |
Fix #111017: Gap between color square and frame of box in the color ramp
While not a real fix, I tracked the reason down to `ui_draw_colorband_handle_box`(in the non-filled case) somewhat misbehaving: - it is not the same size as the filled one -- [1] top line is shifted a pixel up -- [2] right line is shifter a pixel out -- [3] top right corner pixel missing But it even acts wrong if you substitute `ui_draw_colorband_handle_box` with `imm_draw_box_wire_2d`. Both only act wrong in the context of the colorband though (and are working fine elsewhere) which is a bit weired and I could not track it down. Of course we could counter-act by adjusting the width and height that is passed to `ui_draw_colorband_handle_box`, but that still does not solve the corner pixel missing. In this case we can use a workaround though: just draw the box filled. |