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.acheson@gmail.com>2020-10-07 18:59:13 +0300
committerHarley Acheson <harley.acheson@gmail.com>2020-10-07 18:59:13 +0300
commitb8638b6491f39e4a2f8800c1b18ebb459ec502af (patch)
tree8a4b5268fd07d1921b305606061ed35a3fd0a795
parent5e2a60a0034dc7543c868328cf971c442a0b33fb (diff)
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
-rw-r--r--source/blender/editors/interface/interface_templates.c2
1 files changed, 1 insertions, 1 deletions
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,