UI: Reduce limits for the text size theme options
It was possible to increase the text size quite a lot, making text much bigger than their containing widgets. These new limits makes the maximum size of text be closer to the widget size. Note that there needs to be some extra "wiggle room" since fonts may have quite different glyph sizes. So you can still set the font size to be slightly bigger than the widgets. Addresses T80175 and T79059.
This commit is contained in:
parent
f00cb93dbe
commit
96439de784
Notes:
blender-bot
2023-02-14 00:13:36 +01:00
Referenced by issue #79059, Preferences > Theme > Text Style need height fit without overlap
|
@ -1118,8 +1118,8 @@ static void rna_def_userdef_theme_ui_font_style(BlenderRNA *brna)
|
|||
RNA_def_struct_ui_text(srna, "Font Style", "Theme settings for Font");
|
||||
|
||||
prop = RNA_def_property(srna, "points", PROP_INT, PROP_NONE);
|
||||
RNA_def_property_range(prop, 6, 48);
|
||||
RNA_def_property_ui_text(prop, "Points", "");
|
||||
RNA_def_property_range(prop, 6, 24);
|
||||
RNA_def_property_ui_text(prop, "Points", "Font size in points");
|
||||
RNA_def_property_update(prop, 0, "rna_userdef_theme_update");
|
||||
|
||||
prop = RNA_def_property(srna, "font_kerning_style", PROP_ENUM, PROP_NONE);
|
||||
|
|
Loading…
Reference in New Issue