diff options
author | Julian Eisel <julian@blender.org> | 2022-07-21 15:55:18 +0300 |
---|---|---|
committer | Julian Eisel <julian@blender.org> | 2022-07-21 18:16:10 +0300 |
commit | 3a97c4056f8b9f663150a988b9aa9647517c33ed (patch) | |
tree | c4a2f6eecefb9a09b092e162284c8aba79674d90 /source/blender/editors/include/UI_interface_icons.h | |
parent | 9dbcefb10e53cc809eb2e99333376b2a881c0863 (diff) |
Proof of Concept: File Browser thumbnail mode using grid viewfile-browser-grid-view
This was meant as an experiment to see how tangible it is to rewrite the
File Browser UI code to be based on views, starting with the grid view
for thumbnail mode. See T99890.
My initial conclusion is that porting to views is quite doable, but
we'll need some further UI code features to make certain things
possible. Like big "composed" icons, where a file type icon is displayed
on top of a big, generic file icon.
There is a fair bit of stuff here that I'm not happy with. Plus things
like selection, double clicking to open and renaming don't work yet.
It's a start, a proof of concept even :)
Diffstat (limited to 'source/blender/editors/include/UI_interface_icons.h')
-rw-r--r-- | source/blender/editors/include/UI_interface_icons.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/include/UI_interface_icons.h b/source/blender/editors/include/UI_interface_icons.h index a1a98a4b08c..1cfec698680 100644 --- a/source/blender/editors/include/UI_interface_icons.h +++ b/source/blender/editors/include/UI_interface_icons.h @@ -96,7 +96,8 @@ int UI_icon_preview_to_render_size(enum eIconSizes size); */ void UI_icon_draw(float x, float y, int icon_id); void UI_icon_draw_alpha(float x, float y, int icon_id, float alpha); -void UI_icon_draw_preview(float x, float y, int icon_id, float aspect, float alpha, int size); +void UI_icon_draw_preview( + float x, float y, int icon_id, float aspect, float alpha, int size, const uchar mono_color[4]); void UI_icon_draw_ex(float x, float y, |