UI: Add elbow in hierarchy line and change padding a bit #116200

Closed
Sybren A. Stüvel wants to merge 3 commits from dr.sybren/blender:gui/tree-view-tweaks into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

3 Commits

Author SHA1 Message Date
7fcc33a7d8 formatting changes 2024-01-23 12:03:36 -08:00
354119ce4e Merge branch 'main' of projects.blender.org:blender/blender into pr116200 2024-01-23 11:56:45 -08:00
c231d7cb35 UI: Add elbow in hierarchy line and change padding a bit
Two small alterations to the layout of Tree View components.

1. End the vertical hierarchy line in an "elbow" shape. This makes it
   visually clearer where the children end, and a new parent item
   begins.

2. Slightly change the padding rules, so that text aligns regardless of
   whether the collapse-chevron is drawn or not.

Co-authored with Harley Acheson (@Harley).
2024-01-16 11:16:40 +01:00