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:
authorYevgeny Makarov <jenkm>2020-12-20 20:27:02 +0300
committerHans Goudey <h.goudey@me.com>2020-12-20 20:27:02 +0300
commit478ba532700fa4c2bbcccfd821d1386653729fb5 (patch)
tree4983fe6173275a1ed86b583a04c59e9d45fc5d42 /release/scripts/startup/bl_ui/properties_data_pointcloud.py
parent16527ebabacfe6a625fb12358ee73f0424517c63 (diff)
UI: Fix text padding in some list widgets
Normally, pure text buttons have no padding at their edges so they align with edges of buttons, see D9058. However, in several cases there are labels aligned to the right side of a list widget row, so they're missing padding against the right edge. The fix is to use emboss = 'NONE' for such labels, which changes the drawing style, adding padding on the right edge. (Normally so labels aligned with the text from non-embossed buttons). This is not necessarily intended, but it works properly. For more information, see the revision. Differential Revision: https://developer.blender.org/D9874
Diffstat (limited to 'release/scripts/startup/bl_ui/properties_data_pointcloud.py')
-rw-r--r--release/scripts/startup/bl_ui/properties_data_pointcloud.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_data_pointcloud.py b/release/scripts/startup/bl_ui/properties_data_pointcloud.py
index f2464fb9765..eca59ea4aaf 100644
--- a/release/scripts/startup/bl_ui/properties_data_pointcloud.py
+++ b/release/scripts/startup/bl_ui/properties_data_pointcloud.py
@@ -87,7 +87,8 @@ class POINTCLOUD_UL_attributes(UIList):
data_type = attribute.bl_rna.properties['data_type'].enum_items[attribute.data_type]
split = layout.split(factor=0.75)
- split.prop(attribute, "name", text="", emboss=False)
+ split.emboss = 'NONE'
+ split.prop(attribute, "name", text="")
sub = split.row()
sub.alignment = 'RIGHT'
sub.active = False