UI: Configurable UI Font Weight #112454

Merged
Harley Acheson merged 36 commits from Harley/blender:TextUiStyles into main 2023-10-21 00:28:37 +02:00
2 changed files with 10 additions and 8 deletions
Showing only changes of commit f313e753f5 - Show all commits

View File

@ -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

View File

@ -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) {