UI: tweak image menu layout to match file menu more.

This commit is contained in:
2018-07-09 23:27:06 +02:00
parent 07e368cb5f
commit 845899d373
2 changed files with 22 additions and 19 deletions

View File

@@ -191,30 +191,33 @@ class IMAGE_MT_image(Menu):
sima = context.space_data
ima = sima.image
layout.operator("image.new")
layout.operator("image.open")
show_render = sima.show_render
layout.operator("image.new", text="New")
layout.operator("image.open", text="Open...")
layout.operator("image.read_viewlayers")
if ima:
if not show_render:
layout.operator("image.replace", text="Replace...")
layout.operator("image.reload", text="Reload")
layout.operator("image.external_edit", "Edit Externally")
layout.separator()
if ima:
layout.operator("image.save", text="Save")
layout.operator("image.save_as", text="Save As...")
layout.operator("image.save_as", text="Save a Copy...").copy = True
if ima and ima.source == 'SEQUENCE':
layout.operator("image.save_sequence")
layout.operator("image.save_dirty", text="Save All Images")
if ima:
if not show_render:
layout.operator("image.replace")
layout.operator("image.reload")
layout.operator("image.save")
layout.operator("image.save_as")
layout.operator("image.save_as", text="Save a Copy").copy = True
if ima.source == 'SEQUENCE':
layout.operator("image.save_sequence")
layout.operator("image.external_edit", "Edit Externally")
layout.separator()
layout.menu("IMAGE_MT_image_invert")
@@ -222,7 +225,7 @@ class IMAGE_MT_image(Menu):
if not show_render:
if not ima.packed_file:
layout.separator()
layout.operator("image.pack")
layout.operator("image.pack", text="Pack")
# only for dirty && specific image types, perhaps
# this could be done in operator poll too