UI: Add View pie to File Browser
Adds a pie menu to the File Browser for convenient switching between vertical list, horizontal list and thumbnail view.
Uses the same shortcut as other View pie menus (`ACCENT_GRAVE`).
{F12811673}
Reviewed By: #user_interface, pablovazquez, Severin
Differential Revision: https://developer.blender.org/D13874
This commit is contained in:
committed by
Pablo Vazquez
parent
b247588dc0
commit
cdfe2e1c3f
@@ -2234,6 +2234,7 @@ def km_file_browser(params):
|
||||
{"properties": [("increment", -10)]}),
|
||||
("file.filenum", {"type": 'NUMPAD_MINUS', "value": 'PRESS', "ctrl": True, "repeat": True},
|
||||
{"properties": [("increment", -100)]}),
|
||||
op_menu_pie("FILEBROWSER_MT_view_pie", {"type": 'ACCENT_GRAVE', "value": 'PRESS'}),
|
||||
|
||||
# Select file under cursor before spawning the context menu.
|
||||
("file.select", {"type": 'RIGHTMOUSE', "value": 'PRESS'},
|
||||
|
||||
Reference in New Issue
Block a user