Blender Git Loki

Git Commits -> Revision c0a5b13

Revision c0a5b13 by Julian Eisel (master)
October 7, 2021, 13:30 (GMT)
Asset Browser: Rework layout & behavior of catalog tree-view

This reworks how tree rows are constructed in the layout and how they
behave in return.

* To open or collapse a row, the triangle/chevron icon has to be clicked
now. The previous behavior of allowing to do it on the entire row, but
only if the item was active already, was just too unusual and felt
weird.
* Reduce margin between chevron icon and the row label.
* Indent child items without chevron some more, otherwise they feel like
a row on the same level as their parent, just without chevron.
* Fix renaming button taking entire row width. Respect indentation now.
* Fix double-clicking to rename toggling collapsed state on each click.

Some hacks/special-handling was needed so tree-rows always highlight
while the mouse is hovering them, even if the mouse is actually hovering
another button inside the row.

Commit Details:

Full Hash: c0a5b13b5ed3d1477afdbae48653acf87c6a0d08
Parent Commit: 13a28d9
Lines Changed: +200, -63

5 Modified Paths:

/source/blender/editors/include/UI_tree_view.hh (+11, -6) (Diff)
/source/blender/editors/interface/interface.c (+7, -1) (Diff)
/source/blender/editors/interface/interface_handlers.c (+50, -5) (Diff)
/source/blender/editors/interface/tree_view.cc (+127, -48) (Diff)
/source/blender/editors/space_file/asset_catalog_tree_view.cc (+5, -3) (Diff)
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021