529ab6555ce2ebfffe3eb2a38021ac0dd928674f
While working on #136907, I noticed issues with how we position and size elements in the File/Asset Browser: - A padding meant for outside the list "tiles" was applied inside, resulting in unnecessary/unintended extra space between previews and their label, and too small vertical paddings between tiles (see screenshots in PR). - The height of text was measured based on the font size (not the actual line height) and scaled up by some arbitrary amount. Made it hard to draw multi-line text well, as done in #136907. - Icons in list views were not centered vertically. - The vertical list offset the entire list by the padding meant for tiles. Not quite sure if intentional, I think it looks better with it. But code was confusing since suddenly this extra tile padding was thrown in. Should be a separate padding. All these changes are a bit intertwined, so submitting them together. Basically this makes paddings be applied more consistently and fixes related issues, so the code makes much more sense. Pull Request: https://projects.blender.org/blender/blender/pulls/137675
…
Blender
Blender is the free and open source 3D creation suite. It supports the entirety of the 3D pipeline-modeling, rigging, animation, simulation, rendering, compositing, motion tracking and video editing.
Project Pages
Development
License
Blender as a whole is licensed under the GNU General Public License, Version 3. Individual files may have a different, but compatible license.
See blender.org/about/license for details.
Description
Languages
C++
78%
Python
14.9%
C
2.9%
GLSL
1.9%
CMake
1.2%
Other
0.9%
