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
This commit is contained in:
Harley Acheson 2020-10-07 08:59:13 -07:00
parent 5e2a60a003
commit b8638b6491
1 changed files with 1 additions and 1 deletions

View File

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