UI: Icons in context menu for copy/paste
authorPablo Vazquez <venomgfx@gmail.com>
Fri, 23 Nov 2018 02:44:27 +0000 (03:44 +0100)
committerPablo Vazquez <venomgfx@gmail.com>
Fri, 23 Nov 2018 02:47:32 +0000 (03:47 +0100)
release/scripts/startup/bl_ui/space_view3d.py

index 27013081ce40e703563740ba8384be9a051e5503..c83d3f556660669e1473eaba2994d2822c07a5c6 100644 (file)
@@ -1140,9 +1140,9 @@ class VIEW3D_MT_select_edit_text(Menu):
     def draw(self, context):
         layout = self.layout
 
-        layout.operator("font.text_paste", text="Paste")
         layout.operator("font.text_cut", text="Cut")
-        layout.operator("font.text_copy", text="Copy")
+        layout.operator("font.text_copy", text="Copy", icon="COPYDOWN")
+        layout.operator("font.text_paste", text="Paste", icon="PASTEDOWN")
 
         layout.separator()
 
@@ -1626,8 +1626,8 @@ class VIEW3D_MT_object(Menu):
 
         layout.separator()
 
-        layout.operator("view3d.copybuffer", text="Copy Objects")
-        layout.operator("view3d.pastebuffer", text="Paste Objects")
+        layout.operator("view3d.copybuffer", text="Copy Objects", icon="COPYDOWN")
+        layout.operator("view3d.pastebuffer", text="Paste Objects", icon="PASTEDOWN")
 
         layout.separator()
 
@@ -2465,8 +2465,8 @@ class VIEW3D_MT_pose(Menu):
 
         layout.separator()
 
-        layout.operator("pose.copy")
-        layout.operator("pose.paste").flipped = False
+        layout.operator("pose.copy", icon="COPYDOWN")
+        layout.operator("pose.paste", icon="PASTEDOWN").flipped = False
         layout.operator("pose.paste", text="Paste Pose Flipped").flipped = True
 
         layout.separator()
@@ -2648,8 +2648,8 @@ class VIEW3D_MT_pose_specials(Menu):
 
         layout.separator()
 
-        layout.operator("pose.copy")
-        layout.operator("pose.paste").flipped = False
+        layout.operator("pose.copy", icon="COPYDOWN")
+        layout.operator("pose.paste", icon="PASTEDOWN").flipped = False
         layout.operator("pose.paste", text="Paste X-Flipped Pose").flipped = True
 
         layout.separator()
@@ -3727,8 +3727,8 @@ class VIEW3D_MT_edit_gpencil(Menu):
 
         layout.separator()
 
-        layout.operator("gpencil.copy", text="Copy")
-        layout.operator("gpencil.paste", text="Paste").type = 'COPY'
+        layout.operator("gpencil.copy", text="Copy", icon="COPYDOWN")
+        layout.operator("gpencil.paste", text="Paste", icon="PASTEDOWN").type = 'COPY'
         layout.operator("gpencil.paste", text="Paste & Merge").type = 'MERGE'
 
         layout.separator()