UI: Adjust menu sorting order in Preferences #107817
|
@ -300,12 +300,15 @@ class USERPREF_PT_interface_statusbar(InterfacePanel, CenterAlignMixIn, Panel):
|
|||
col.prop(view, "show_statusbar_version", text="Blender Version")
|
||||
|
||||
|
||||
class USERPREF_PT_interface_menus(InterfacePanel, Panel):
|
||||
class USERPREF_PT_interface_menus(InterfacePanel, CenterAlignMixIn, Panel):
|
||||
bl_label = "Menus"
|
||||
bl_options = {'DEFAULT_CLOSED'}
|
||||
|
||||
def draw(self, context):
|
||||
pass
|
||||
def draw_centered(self, context, layout):
|
||||
prefs = context.preferences
|
||||
view = prefs.view
|
||||
|
||||
layout.prop(view, "use_directional_menus")
|
||||
|
||||
|
||||
class USERPREF_PT_interface_menus_mouse_over(InterfacePanel, CenterAlignMixIn, Panel):
|
||||
|
|
|
@ -4811,10 +4811,8 @@ static void rna_def_userdef_view(BlenderRNA *brna)
|
|||
|
||||
prop = RNA_def_property(srna, "use_directional_menus", PROP_BOOLEAN, PROP_NONE);
|
||||
RNA_def_property_boolean_negative_sdna(prop, NULL, "uiflag", USER_MENUFIXEDORDER);
|
||||
RNA_def_property_ui_text(prop,
|
||||
"Contents Follow Opening Direction",
|
||||
"Otherwise menus, etc will always be top to bottom, left to right, "
|
||||
"no matter opening direction");
|
||||
RNA_def_property_ui_text(
|
||||
prop, "Directional Menus", "Sort menu items by opening direction instead of fixed sorting");
|
||||
|
||||
static const EnumPropertyItem header_align_items[] = {
|
||||
{0, "NONE", 0, "Keep Existing", "Keep existing header alignment"},
|
||||
|
|
Loading…
Reference in New Issue