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:
authorHarley Acheson <harley>2019-02-21 19:34:48 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-02-21 20:03:34 +0300
commit1de1cedf4c2fe3dc460267ea3134f17df508b7d9 (patch)
treeb0d89c5e72b62015f9e40309ff4bd0b8a3271371 /source/blender/makesrna
parent86bbadaaee949f39f28436ff65c65ae6b194a3c3 (diff)
UI: better widget drawing with thick line width.
When the line width was larger than the UI scale, there was not enough space for thicker widget outlines to draw properly. Now widgets are made a little larger to accommodate the thicker outlines. Differential Revision: https://developer.blender.org/D4368
Diffstat (limited to 'source/blender/makesrna')
-rw-r--r--source/blender/makesrna/intern/rna_userdef.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/source/blender/makesrna/intern/rna_userdef.c b/source/blender/makesrna/intern/rna_userdef.c
index 72f97e7a01f..b12852220a2 100644
--- a/source/blender/makesrna/intern/rna_userdef.c
+++ b/source/blender/makesrna/intern/rna_userdef.c
@@ -3713,7 +3713,7 @@ static void rna_def_userdef_view(BlenderRNA *brna)
/* View */
prop = RNA_def_property(srna, "ui_scale", PROP_FLOAT, PROP_NONE);
- RNA_def_property_ui_text(prop, "UI Scale", "Changes the size of the fonts and buttons in the interface");
+ RNA_def_property_ui_text(prop, "UI Scale", "Changes the size of the fonts and widgets in the interface");
RNA_def_property_range(prop, 0.25f, 4.0f);
RNA_def_property_ui_range(prop, 0.5f, 2.0f, 1, 2);
RNA_def_property_float_default(prop, 1.0f);
@@ -3722,7 +3722,8 @@ static void rna_def_userdef_view(BlenderRNA *brna)
prop = RNA_def_property(srna, "ui_line_width", PROP_ENUM, PROP_NONE);
RNA_def_property_enum_items(prop, line_width);
RNA_def_property_ui_text(prop, "UI Line Width",
- "Changes the thickness of lines and points in the interface");
+ "Changes the thickness of widget outlines, lines and points in the interface, "
+ "for high DPI displays");
RNA_def_property_update(prop, 0, "rna_userdef_dpi_update");
/* display */