[Bf-blender-cvs] [316d23f2ba] master: Graph Editor: Replace Normalise/Auto checkboxes with toggle buttons

Joshua Leung noreply at git.blender.org
Thu Feb 9 07:03:11 CET 2017


Commit: 316d23f2babbb9c265ed8f1d1f7ca50b316314ca
Author: Joshua Leung
Date:   Thu Feb 9 17:04:21 2017 +1300
Branches: master
https://developer.blender.org/rB316d23f2babbb9c265ed8f1d1f7ca50b316314ca

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