tornavis/source/blender/editors/screen
Julian Eisel bb7a220e89 UI: Improve/correct vertical widget positioning in header-like regions
There was code to vertically offset layouts in header-like regions to
ensure widgets are centered properly. It wasn't clear why this was
necessary so far. I noticed this is region alignment dependent though:
The offset is only needed when the upper region edge matches the upper
area edge. I'm not entirely sure if it is the edge drawing or a slightly
smaller drawable surface of the region (clipped to be 1px less than the
area height), think it is the latter. But either way, this offsetting
makes a lot more sense now. Fix is to only apply the offset for regions
sharing the upper edge with the area. Edges at the window differ a bit,
so the offset is not applied there.

Fixes the slightly off vertical positioning of widgets in the asset
shelf header.
2023-09-14 15:47:53 +02:00
..
CMakeLists.txt Anim: replace Bone Groups & Armature Layers with Bone Collections 2023-08-29 14:31:18 +02:00
area.cc UI: Improve/correct vertical widget positioning in header-like regions 2023-09-14 15:47:53 +02:00
area_query.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
area_utils.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
glutil.cc Cleanup: reduce amount of math-related includes 2023-08-10 14:51:40 +03:00
screen_context.cc Fix: update BKE bone layer visibility checks to use bone collections 2023-08-29 14:31:18 +02:00
screen_draw.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
screen_edit.cc I18N/UI messages fixes. 2023-08-28 18:02:31 +02:00
screen_geometry.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
screen_intern.h License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
screen_ops.cc Cleanup: use enum literals for space_type & region_type arguments 2023-09-14 13:36:34 +10:00
screen_user_menu.cc RNA: return PointerRNA from rna create functions 2023-09-06 00:48:50 +02:00
screendump.cc RNA: return PointerRNA from rna create functions 2023-09-06 00:48:50 +02:00
workspace_edit.cc UI: Consistent Menu/Block/Popup Content Ordering 2023-08-31 20:24:53 +02:00
workspace_layout_edit.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00
workspace_listen.cc License Headers: Set copyright to "Blender Authors", add AUTHORS 2023-08-16 00:20:26 +10:00