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:
authorJulian Eisel <julian@blender.org>2022-06-27 17:18:57 +0300
committerJulian Eisel <julian@blender.org>2022-06-27 17:18:57 +0300
commit6f7171525b4abd0a4c0e22dc64f4d53d3a313643 (patch)
tree8287b61c590f59b6a40d561a864c0331979d1159 /source/blender/editors/space_file
parent64a3a11e1926f047cac0a30cad502ea9e648e763 (diff)
File Browser UI: Use "Widget" font style instead of "Widget Label"
It didn't make much sense to use the "Widget Label" font style here, since this is just regular text, not labels for widgets. Checked with @pablovazquez and we agreed on using the "Widget" font style instead. Also fixes a mismatch where we used the "Widget Label" font style for drawing, but the "Widget" font style for string width calculations. Fixes T99207.
Diffstat (limited to 'source/blender/editors/space_file')
-rw-r--r--source/blender/editors/space_file/file_draw.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/space_file/file_draw.c b/source/blender/editors/space_file/file_draw.c
index 0e2b98ca349..f3359336b14 100644
--- a/source/blender/editors/space_file/file_draw.c
+++ b/source/blender/editors/space_file/file_draw.c
@@ -202,7 +202,7 @@ static void file_draw_string(int sx,
}
const uiStyle *style = UI_style_get();
- fs = style->widgetlabel;
+ fs = style->widget;
BLI_strncpy(fname, string, FILE_MAXFILE);
UI_text_clip_middle_ex(&fs, fname, width, UI_DPI_ICON_SIZE, sizeof(fname), '\0');
@@ -245,7 +245,7 @@ static void file_draw_string_multiline(int sx,
}
const uiStyle *style = UI_style_get();
- int font_id = style->widgetlabel.uifont_id;
+ int font_id = style->widget.uifont_id;
int len = strlen(string);
rcti textbox;