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
This commit is contained in:
Joshua Leung 2017-02-09 17:04:21 +13:00
parent 117d90b3da
commit 316d23f2ba
1 changed files with 5 additions and 4 deletions

View File

@ -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)