Blender Git Commit Log

Git Commits -> Revision ee8f69c

Revision ee8f69c by Julian Eisel (master)
September 3, 2019, 14:10 (GMT)
UI: File Browser Design Overhaul

This is a general redesign of the File Browser GUI and interaction
methods. For screenshots, check patch D5601.

Main changes in short:
* File Browser as floating window
* New layout of regions
* Popovers for view and filter options
* Vertical list view with interactive column header
* New and updated icons
* Keymap consistency fixes
* Many tweaks and fixes to the drawing of views

----

General:
* The file browser now opens as temporary floating window. It closes on
Esc. The header is hidden then.
* When the file browser is opened as regular editor, the header remains
visible.
* All file browser regions are now defined in Python (the button
layout).
* Adjusted related operator UI names.

Keymap:
Keymap is now consistent with other list-based views in Blender, such as
the Outliner.
* Left click to select, double-click to open
* Right-click context menus
* Shift-click to fill selection
* Ctrl-click to extend selection

Operator options:
These previously overlapped with the source list, which caused numerous
issues with resizing and presenting many settings in a small panel area.
It was also generally inconsistent with Blender.
* Moved to new sidebar, which can easily be shown or hidden using a
prominent Options toggle.
* IO operators have new layouts to match this new sidebar, using
sub-panels. This will have to be committed separately (Add-on
repository).
* If operators want to show the options by default, they have the option
to do so (see `WM_FILESEL_SHOW_PROPS`, `hide_props_region`), otherwise
they are hidden by default.

General Layout:
The layout has been changed to be simpler, more standard, and fits
better in with Blender 2.8.
* More conventional layout (file path at top, file name at the bottom,
execute/cancel buttons in bottom right).
* Use of popovers to group controls, and allow for more descriptive
naming.
* Search box is always live now, just like Outliner.

Views:
* Date Modified column combines both date and time, also uses user
friendly strings for recent dates (i.e. "Yesterday", "Today").
* Details columns (file size, modification date/time) are now toggleable
for all display types, they are not hardcoded per display type.
* File sizes now show as B, KB, MB, ... rather than B, KiB, MiB, ? They
are now also calculated using base 10 of course.
* Option to sort in inverse order.

Vertical List View:
* This view now used a much simpler single vertical list with columns
for information.
* Users can click on the headers of these columns to order by that
category, and click again to reverse the ordering.

Icons:
* Updated icons by Jendrzych, with better centering.
* Files and folders have new icons in Icon view.
* Both files and folders have reworked superimposed icons that show
users the file/folder type.
* 3D file documents correctly use the 3d file icon, which was unused
previously.
* Workspaces now show their icon on Link/Append - also when listed in
the Outliner.

Minor Python-API breakage:
* `bpy.types.FileSelectParams.display_type`: `LIST_SHORT` and
`LIST_LONG` are replaced by `LIST_VERTICAL` and `LIST_HORIZONTAL`.

Removes the feature where directories would automatically be created if
they are entered into the file path text button, but don't exist. We
were not sure if users use it enough to keep it. We can definitely bring
it back.

----

//Combined effort by @billreynish, @harley, @jendrzych, my university
colleague Brian Meisenheimer and myself.//

Differential Revision: https://developer.blender.org/D5601

Reviewers: Brecht, Bastien

Commit Details:

Full Hash: ee8f69c96cba62b083fb089432cddd0bce5d08e1
Parent Commit: 545f565
Lines Changed: +1852, -1536

33 Modified Paths:

/release/datafiles/prvicons.png (+0, -0) (Diff)
/release/datafiles/prvicons.svg (+373, -780) (Diff)
/release/datafiles/prvicons_update.py (+25, -23) (Diff)
/release/datafiles/userdef/userdef_default_theme.c (+5, -4) (Diff)
/release/scripts/presets/keyconfig/keymap_data/blender_default.py (+14, -11) (Diff)
/release/scripts/presets/keyconfig/keymap_data/industry_compatible_data.py (+6, -3) (Diff)
/release/scripts/startup/bl_ui/space_filebrowser.py (+304, -50) (Diff)
/source/blender/blenlib/BLI_fileops.h (+7, -2) (Diff)
/source/blender/blenlib/intern/BLI_filelist.c (+46, -26) (Diff)
/source/blender/blenloader/intern/versioning_280.c (+34, -0) (Diff)
/source/blender/blenloader/intern/versioning_userdef.c (+1, -0) (Diff)
/source/blender/editors/include/ED_fileselect.h (+39, -8) (Diff)
/source/blender/editors/interface/interface_icons.c (+2, -0) (Diff)
/source/blender/editors/screen/area.c (+0, -3) (Diff)
/source/blender/editors/screen/screen_ops.c (+60, -0) (Diff)
/source/blender/editors/sound/sound_ops.c (+1, -1) (Diff)
/source/blender/editors/space_file/filelist.c (+77, -76) (Diff)
/source/blender/editors/space_file/filelist.h (+1, -1) (Diff)
/source/blender/editors/space_file/filesel.c (+212, -62) (Diff)
/source/blender/editors/space_file/file_draw.c (+285, -352) (Diff)
/source/blender/editors/space_file/file_intern.h (+15, -1) (Diff)
/source/blender/editors/space_file/file_ops.c (+96, -16) (Diff)
/source/blender/editors/space_file/file_panels.c (+1, -0) (Diff)
/source/blender/editors/space_file/space_file.c (+80, -38) (Diff)
/source/blender/editors/space_graph/graph_edit.c (+1, -1) (Diff)
/source/blender/makesdna/DNA_space_types.h (+17, -5) (Diff)
/source/blender/makesrna/intern/rna_space.c (+52, -17) (Diff)
/source/blender/windowmanager/intern/wm_event_system.c (+40, -41) (Diff)
/source/blender/windowmanager/intern/wm_files.c (+16, -3) (Diff)
/source/blender/windowmanager/intern/wm_files_link.c (+2, -2) (Diff)
/source/blender/windowmanager/intern/wm_operator_props.c (+26, -6) (Diff)
/source/blender/windowmanager/intern/wm_window.c (+11, -3) (Diff)
/source/blender/windowmanager/WM_api.h (+3, -1) (Diff)
By: Miika HämäläinenLast update: Nov-07-2014 14:18MiikaHweb | 2003-2021