UI: Add copy/paste icons to Graph and Dopesheet editor context menus
authorWilliam Reynish <billrey@me.com>
Tue, 7 May 2019 18:52:41 +0000 (20:52 +0200)
committerWilliam Reynish <billrey@me.com>
Tue, 7 May 2019 18:52:41 +0000 (20:52 +0200)
Consistent with others

release/scripts/startup/bl_ui/space_dopesheet.py
release/scripts/startup/bl_ui/space_graph.py

index af6a0c4..d7aa593 100644 (file)
@@ -565,9 +565,9 @@ class DOPESHEET_MT_context_menu(Menu):
     def draw(self, _context):
         layout = self.layout
 
-        layout.operator("action.copy", text="Copy")
-        layout.operator("action.paste", text="Paste")
-        layout.operator("action.paste", text="Paste Flipped").flipped = True
+        layout.operator("action.copy", text="Copy", icon='COPYDOWN')
+        layout.operator("action.paste", text="Paste", icon='PASTEDOWN')
+        layout.operator("action.paste", text="Paste Flipped", icon='PASTEFLIPDOWN').flipped = True
 
         layout.separator()
 
index b71c058..445f6a3 100644 (file)
@@ -328,9 +328,9 @@ class GRAPH_MT_context_menu(Menu):
     def draw(self, _context):
         layout = self.layout
 
-        layout.operator("graph.copy", text="Copy")
-        layout.operator("graph.paste", text="Paste")
-        layout.operator("graph.paste", text="Paste Flipped").flipped = True
+        layout.operator("graph.copy", text="Copy", icon='COPYDOWN')
+        layout.operator("graph.paste", text="Paste", icon='PASTEDOWN')
+        layout.operator("graph.paste", text="Paste Flipped", icon='PASTEFLIPDOWN').flipped = True
 
         layout.separator()