VSE: Hide tool header by default

Tools currently used by VSE don't have much useful settings, but they
use a lot of space. Therefore these headers will be hidden by default.

Property `show_region_tool_header` was added to view menu to enable tool
settings.

This could be resolved by region overlap, but it isn't working well
currently.

Differential Revision: https://developer.blender.org/D12875
This commit is contained in:
Richard Antalik 2021-10-15 23:35:49 +02:00
parent 41dc558747
commit 73fbd3eebd
Notes: blender-bot 2023-10-13 01:54:23 +02:00
Referenced by issue #92198, VSE UI To Do: Hide the Tool Header
2 changed files with 3 additions and 3 deletions

View File

@ -169,8 +169,6 @@ class SEQUENCER_HT_header(Header):
st = context.space_data
show_region_tool_header = st.show_region_tool_header
layout.template_header()
layout.prop(st, "view_type", text="")
@ -421,6 +419,7 @@ class SEQUENCER_MT_view(Menu):
# wm_keymap_item_find_props() (see T32595).
layout.operator_context = 'INVOKE_REGION_PREVIEW'
layout.prop(st, "show_region_ui")
layout.prop(st, "show_region_tool_header")
layout.prop(st, "show_region_toolbar")
layout.operator_context = 'INVOKE_DEFAULT'

View File

@ -208,7 +208,8 @@ static void blo_update_defaults_screen(bScreen *screen,
LISTBASE_FOREACH (ARegion *, region, regionbase) {
if (region->regiontype == RGN_TYPE_TOOL_HEADER) {
if ((sl->spacetype == SPACE_IMAGE) && hide_image_tool_header) {
if (((sl->spacetype == SPACE_IMAGE) && hide_image_tool_header) ||
sl->spacetype == SPACE_SEQ) {
region->flag |= RGN_FLAG_HIDDEN;
}
else {