[Bf-blender-cvs] [b8638b6491f] master: UI: Fix Incorrect Workspace Tab Sizing

Harley Acheson noreply at git.blender.org
Wed Oct 7 18:00:20 CEST 2020


Commit: b8638b6491f39e4a2f8800c1b18ebb459ec502af
Author: Harley Acheson
Date:   Wed Oct 7 08:59:13 2020 -0700
Branches: master
https://developer.blender.org/rBb8638b6491f39e4a2f8800c1b18ebb459ec502af

UI: Fix Incorrect Workspace Tab Sizing

Changes Workspace tabs so that the text size and tab width are both set by style.widget.points.

Differential Revision: https://developer.blender.org/D9108

Reviewed by Julian Eisel

===================================================================

M	source/blender/editors/interface/interface_templates.c

===================================================================

diff --git a/source/blender/editors/interface/interface_templates.c b/source/blender/editors/interface/interface_templates.c
index f61941cd2bc..6b11e727b66 100644
--- a/source/blender/editors/interface/interface_templates.c
+++ b/source/blender/editors/interface/interface_templates.c
@@ -1229,7 +1229,7 @@ static void template_ID_tabs(const bContext *C,
 
   LISTBASE_FOREACH (LinkData *, link, &ordered) {
     ID *id = link->data;
-    const int name_width = UI_fontstyle_string_width(&style->widgetlabel, id->name + 2);
+    const int name_width = UI_fontstyle_string_width(&style->widget, id->name + 2);
     const int but_width = name_width + UI_UNIT_X;
 
     uiButTab *tab = (uiButTab *)uiDefButR_prop(block,



More information about the Bf-blender-cvs mailing list