[Bf-blender-cvs] [a8edfba122] id_override_static: Graph Editor: Replace Normalise/Auto checkboxes with toggle buttons

Joshua Leung noreply at git.blender.org
Thu Feb 9 14:52:41 CET 2017


Commit: a8edfba1224645272a22e17b97926185b0173563
Author: Joshua Leung
Date:   Thu Feb 9 17:04:21 2017 +1300
Branches: id_override_static
https://developer.blender.org/rBa8edfba1224645272a22e17b97926185b0173563

Graph Editor: Replace Normalise/Auto checkboxes with toggle buttons

These take less space, fit in better with rest of the UI, and make their relationship clearer

===================================================================

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

===================================================================

diff --git a/release/scripts/startup/bl_ui/space_graph.py b/release/scripts/startup/bl_ui/space_graph.py
index 446df9e6e7..bacbcce2d9 100644
--- a/release/scripts/startup/bl_ui/space_graph.py
+++ b/release/scripts/startup/bl_ui/space_graph.py
@@ -42,10 +42,11 @@ class GRAPH_HT_header(Header):
 
         dopesheet_filter(layout, context)
 
-        layout.prop(st, "use_normalization", text="Normalize")
-        row = layout.row()
-        row.active = st.use_normalization
-        row.prop(st, "use_auto_normalization", text="Auto")
+        row = layout.row(align=True)
+        row.prop(st, "use_normalization", icon='ZOOM_ALL', text="Normalize", toggle=True)
+        sub = row.row(align=True)
+        sub.active = st.use_normalization
+        sub.prop(st, "use_auto_normalization", text="Auto", toggle=True)
 
         row = layout.row(align=True)




More information about the Bf-blender-cvs mailing list