UI: Using Consistent Font Icon in File Browser
Use only one font icon in File Browser for all platforms. Correct mistake to allow this icon to be used. Differential Revision: https://developer.blender.org/D7037 Reviewed by Brecht Van Lommel
This commit is contained in:
@@ -313,7 +313,7 @@ static void file_draw_preview(uiBlock *block,
|
||||
GPU_blend_set_func_separate(
|
||||
GPU_SRC_ALPHA, GPU_ONE_MINUS_SRC_ALPHA, GPU_ONE, GPU_ONE_MINUS_SRC_ALPHA);
|
||||
|
||||
if (icon && (icon != ICON_FILE_FONT)) {
|
||||
if (icon && !(typeflags & FILE_TYPE_FTFONT)) {
|
||||
/* size of center icon is scaled to fit container and UI scale */
|
||||
float icon_x, icon_y;
|
||||
|
||||
|
||||
@@ -739,7 +739,7 @@ void fsmenu_read_system(struct FSMenu *fsmenu, int read_bookmarks)
|
||||
FS_CATEGORY_SYSTEM_BOOKMARKS,
|
||||
&FOLDERID_Fonts,
|
||||
IFACE_("Fonts"),
|
||||
ICON_FONTPREVIEW,
|
||||
ICON_FILE_FONT,
|
||||
FS_INSERT_LAST);
|
||||
|
||||
/* These items are just put in path cache for thumbnail views and if bookmarked. */
|
||||
|
||||
Reference in New Issue
Block a user