Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-09-28 07:07:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2021-09-28 07:36:52 +0300
commitc7d94a7827a5be9343eea22a9638bb059f185206 (patch)
tree8187e76d2e289e6763e3af60356642ac24f2a3be /source/blender/blenkernel/intern/geometry_set.cc
parent986d60490c0694941e27c070780c55f07b7b4842 (diff)
UI: avoid excessive padding for labels in headers
Labels in headers reserved space for an icon even when no icon was used. This is caused by the shared function ui_text_icon_width adding 1.5x a buttons X-units width the the width of the string. Menu buttons detected this and subtracted the extra padding. Instead of adding the same workaround for labels, add ui_text_icon_width_ex that takes a padding argument. Add presets for 'default', 'compact' and 'none' to avoid duplicating padding values. This allows removal of hard-coded label scaling for the add-object tool.
Diffstat (limited to 'source/blender/blenkernel/intern/geometry_set.cc')
0 files changed, 0 insertions, 0 deletions