Julian Eisel 529ab6555c UI: File/Asset Browser: Improve positioning of labels and icons
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
2025-04-18 11:34:01 +02:00
2025-04-16 11:08:40 +10:00
2025-04-17 14:30:34 +02:00
2023-12-08 13:28:13 +11:00
2025-01-08 16:42:50 +01:00
2025-03-12 21:55:59 +11:00

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.

Blender screenshot

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
No description provided
Readme 841 MiB
Languages
C++ 78%
Python 14.9%
C 2.9%
GLSL 1.9%
CMake 1.2%
Other 0.9%