[Bf-blender-cvs] [acb8334e706] blender2.8: UI: Some icons for Image menu in Image editor.
Pablo Vazquez
noreply at git.blender.org
Thu Nov 8 16:09:50 CET 2018
Commit: acb8334e706eb0fd12ff421229f4bb65e8f3d9de
Author: Pablo Vazquez
Date: Wed Nov 7 18:16:04 2018 +0100
Branches: blender2.8
https://developer.blender.org/rBacb8334e706eb0fd12ff421229f4bb65e8f3d9de
UI: Some icons for Image menu in Image editor.
===================================================================
M release/scripts/startup/bl_ui/space_image.py
===================================================================
diff --git a/release/scripts/startup/bl_ui/space_image.py b/release/scripts/startup/bl_ui/space_image.py
index 9abf4519bf6..b3daba47a13 100644
--- a/release/scripts/startup/bl_ui/space_image.py
+++ b/release/scripts/startup/bl_ui/space_image.py
@@ -194,7 +194,7 @@ class IMAGE_MT_image(Menu):
show_render = sima.show_render
layout.operator("image.new", text="New")
- layout.operator("image.open", text="Open...")
+ layout.operator("image.open", text="Open...", icon='FILE_FOLDER')
layout.operator("image.read_viewlayers")
@@ -210,7 +210,7 @@ class IMAGE_MT_image(Menu):
layout.separator()
if ima:
- layout.operator("image.save", text="Save")
+ layout.operator("image.save", text="Save", icon='FILE_TICK')
layout.operator("image.save_as", text="Save As...")
layout.operator("image.save_as", text="Save a Copy...").copy = True
@@ -244,17 +244,17 @@ class IMAGE_MT_image_invert(Menu):
def draw(self, context):
layout = self.layout
- props = layout.operator("image.invert", text="Invert Image Colors")
+ props = layout.operator("image.invert", text="Invert Image Colors", icon='IMAGE_RGB')
props.invert_r = True
props.invert_g = True
props.invert_b = True
layout.separator()
- layout.operator("image.invert", text="Invert Red Channel").invert_r = True
- layout.operator("image.invert", text="Invert Green Channel").invert_g = True
- layout.operator("image.invert", text="Invert Blue Channel").invert_b = True
- layout.operator("image.invert", text="Invert Alpha Channel").invert_a = True
+ layout.operator("image.invert", text="Invert Red Channel", icon='COLOR_RED').invert_r = True
+ layout.operator("image.invert", text="Invert Green Channel", icon='COLOR_GREEN').invert_g = True
+ layout.operator("image.invert", text="Invert Blue Channel", icon='COLOR_BLUE').invert_b = True
+ layout.operator("image.invert", text="Invert Alpha Channel", icon='IMAGE_ALPHA').invert_a = True
class IMAGE_MT_uvs_showhide(Menu):
More information about the Bf-blender-cvs
mailing list