UI: Configurable UI Font Weight #112454
|
@ -29,7 +29,7 @@ extern "C" {
|
|||
|
||||
/* Blender file format version. */
|
||||
#define BLENDER_FILE_VERSION BLENDER_VERSION
|
||||
#define BLENDER_FILE_SUBVERSION 2
|
||||
#define BLENDER_FILE_SUBVERSION 3
|
||||
|
||||
/* Minimum Blender version that supports reading file written with the current
|
||||
* version. Older Blender versions will test this and cancel loading the file, showing a warning to
|
||||
|
|
|
@ -885,6 +885,15 @@ void blo_do_versions_userdef(UserDef *userdef)
|
|||
userdef->text_render |= USER_TEXT_RENDER_SUBPIXELAA;
|
||||
}
|
||||
|
||||
if (!USER_VERSION_ATLEAST(401, 3)) {
|
||||
LISTBASE_FOREACH (uiStyle *, style, &userdef->uistyles) {
|
||||
style->paneltitle.character_weight = 400;
|
||||
style->grouplabel.character_weight = 400;
|
||||
style->widgetlabel.character_weight = 400;
|
||||
style->widget.character_weight = 400;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Versioning code until next subversion bump goes here.
|
||||
*
|
||||
|
@ -896,13 +905,6 @@ void blo_do_versions_userdef(UserDef *userdef)
|
|||
*/
|
||||
{
|
||||
/* Keep this block, even when empty. */
|
||||
|
||||
LISTBASE_FOREACH (uiStyle *, style, &userdef->uistyles) {
|
||||
style->paneltitle.character_weight = 400;
|
||||
style->grouplabel.character_weight = 400;
|
||||
style->widgetlabel.character_weight = 400;
|
||||
style->widget.character_weight = 400;
|
||||
}
|
||||
}
|
||||
|
||||
LISTBASE_FOREACH (bTheme *, btheme, &userdef->themes) {
|
||||
|
|
Loading…
Reference in New Issue