UI: Change "Full Screen Area" to "Focus Mode"
Areas can be made to take up more space in two different ways. One we call "Maximize Area" that just takes up the rest of non-global space, so leaving Top Bar and Status Bar and everything in the area unchanged. The other option is shown as "Fullscreen Area" and it calls the same operator with a use_hide_panels property. This hides the global areas and also all regions in the area. This was added as an option for the stereo 3D pipeline for viewing without the distraction of UI elements that cause depth issue. #142418 further removed text overlays and the navigation gizmos. This PR just renames the option to better describe the result, using "Focus Mode". Pull Request: https://projects.blender.org/blender/blender/pulls/142605
This commit is contained in:
committed by
Harley Acheson
parent
bbfc42fbf7
commit
8ba44fe799
@@ -80,8 +80,11 @@ class INFO_MT_area(Menu):
|
||||
|
||||
layout.separator()
|
||||
|
||||
layout.operator("screen.screen_full_area")
|
||||
layout.operator("screen.screen_full_area", text="Toggle Fullscreen Area").use_hide_panels = True
|
||||
if context.screen.show_fullscreen:
|
||||
layout.operator("screen.screen_full_area", text="Restore Areas")
|
||||
else:
|
||||
layout.operator("screen.screen_full_area", text="Maximize Area")
|
||||
layout.operator("screen.screen_full_area", text="Focus Mode").use_hide_panels = True
|
||||
layout.operator("screen.area_dupli")
|
||||
|
||||
layout.separator()
|
||||
|
||||
@@ -3684,7 +3684,8 @@ static void SCREEN_OT_screen_full_area(wmOperatorType *ot)
|
||||
ot->poll = screen_maximize_area_poll;
|
||||
ot->flag = 0;
|
||||
|
||||
prop = RNA_def_boolean(ot->srna, "use_hide_panels", false, "Hide Panels", "Hide all the panels");
|
||||
prop = RNA_def_boolean(
|
||||
ot->srna, "use_hide_panels", false, "Hide Panels", "Hide all the panels (Focus Mode)");
|
||||
RNA_def_property_flag(prop, PROP_SKIP_SAVE);
|
||||
}
|
||||
|
||||
@@ -5219,7 +5220,7 @@ static void screen_area_menu_items(ScrArea *area, uiLayout *layout)
|
||||
|
||||
if (area->spacetype != SPACE_FILE && !area->full) {
|
||||
ptr = layout->op("SCREEN_OT_screen_full_area",
|
||||
IFACE_("Full Screen Area"),
|
||||
IFACE_("Focus Mode"),
|
||||
ICON_NONE,
|
||||
blender::wm::OpCallContext::InvokeDefault,
|
||||
UI_ITEM_NONE);
|
||||
|
||||
Reference in New Issue
Block a user