@@ -94,15 +94,15 @@ static private Color filterBySelectionColor
9494 }
9595 }
9696
97- internal const int kSliderThickness = 15 ;
97+ internal const int kSliderThickness = 13 ;
9898 internal const int kIntFieldWidth = 35 ;
9999 internal const int kHierarchyMinWidth = 300 ;
100100 internal const int kToggleButtonWidth = 80 ;
101101 internal const float kDisabledRulerAlpha = 0.12f ;
102102
103103 private int layoutRowHeight
104104 {
105- get { return ( int ) EditorGUI . kWindowToolbarHeight + 1 ; }
105+ get { return ( int ) EditorGUI . kWindowToolbarHeight ; }
106106 }
107107
108108 internal struct FrameRateMenuEntry
@@ -227,9 +227,10 @@ public void OnAnimEditorGUI(EditorWindow parent, Rect position)
227227 HierarchyOnGUI ( ) ;
228228
229229 // Bottom row of controls
230- GUILayout . BeginHorizontal ( AnimationWindowStyles . miniToolbar ) ;
231- TabSelectionOnGUI ( ) ;
232- GUILayout . EndHorizontal ( ) ;
230+ using ( new GUILayout . HorizontalScope ( AnimationWindowStyles . toolbarBottom ) )
231+ {
232+ TabSelectionOnGUI ( ) ;
233+ }
233234
234235 GUILayout . EndVertical ( ) ;
235236
@@ -254,7 +255,10 @@ public void OnAnimEditorGUI(EditorWindow parent, Rect position)
254255 OverlayOnGUI ( contentLayoutRect ) ;
255256
256257 if ( Event . current . type == EventType . Repaint )
258+ {
257259 OptionsOnGUI ( optionsID ) ;
260+ AnimationWindowStyles . separator . Draw ( new Rect ( hierarchyWidth , 0 , 1 , position . height ) , false , false , false , false ) ;
261+ }
258262
259263 RenderEventTooltip ( ) ;
260264 }
@@ -525,7 +529,7 @@ private void TabSelectionOnGUI()
525529 GUILayout . FlexibleSpace ( ) ;
526530 EditorGUI . BeginChangeCheck ( ) ;
527531 GUILayout . Toggle ( ! m_State . showCurveEditor , AnimationWindowStyles . dopesheet , AnimationWindowStyles . miniToolbarButton , GUILayout . Width ( kToggleButtonWidth ) ) ;
528- GUILayout . Toggle ( m_State . showCurveEditor , AnimationWindowStyles . curves , AnimationWindowStyles . miniToolbarButton , GUILayout . Width ( kToggleButtonWidth ) ) ;
532+ GUILayout . Toggle ( m_State . showCurveEditor , AnimationWindowStyles . curves , EditorStyles . toolbarButtonRight , GUILayout . Width ( kToggleButtonWidth ) ) ;
529533 if ( EditorGUI . EndChangeCheck ( ) )
530534 {
531535 SwitchBetweenCurvesAndDopesheet ( ) ;
@@ -666,7 +670,6 @@ private void TimeRulerOnGUI(Rect timeRulerRect)
666670 Rect timeRulerRectNoScrollbar = new Rect ( timeRulerRect . xMin , timeRulerRect . yMin , timeRulerRect . width - kSliderThickness , timeRulerRect . height ) ;
667671 Rect timeRulerBackgroundRect = timeRulerRectNoScrollbar ;
668672
669- timeRulerBackgroundRect . y += 2 ;
670673 GUI . Box ( timeRulerBackgroundRect , GUIContent . none , AnimationWindowStyles . timeRulerBackground ) ;
671674
672675 if ( ! m_State . disabled )
@@ -717,14 +720,14 @@ private GenericMenu GenerateOptionsMenu()
717720
718721 private void OptionsOnGUI ( int controlID )
719722 {
720- Rect layoutRect = new Rect ( hierarchyWidth - 1f , 1f , contentWidth , layoutRowHeight ) ;
723+ Rect layoutRect = new Rect ( hierarchyWidth , 0f , contentWidth , layoutRowHeight ) ;
721724
722725 GUI . BeginGroup ( layoutRect ) ;
723726
724- Vector2 optionsSize = EditorStyles . toolbarButton . CalcSize ( AnimationWindowStyles . optionsContent ) ;
725- Rect optionsRect = new Rect ( layoutRect . width - optionsSize . x , 0f , optionsSize . x , optionsSize . y ) ;
726-
727- if ( EditorGUI . DropdownButton ( controlID , optionsRect , AnimationWindowStyles . optionsContent , EditorStyles . toolbarButton ) )
727+ Vector2 optionsSize = EditorStyles . toolbarButtonRight . CalcSize ( AnimationWindowStyles . optionsContent ) ;
728+ Rect optionsRect = new Rect ( layoutRect . width - kSliderThickness , 0f , optionsSize . x , optionsSize . y ) ;
729+ GUI . Box ( optionsRect , GUIContent . none , AnimationWindowStyles . animPlayToolBar ) ;
730+ if ( EditorGUI . DropdownButton ( controlID , optionsRect , AnimationWindowStyles . optionsContent , AnimationWindowStyles . optionsButton ) )
728731 {
729732 var menu = GenerateOptionsMenu ( ) ;
730733 menu . ShowAsContext ( ) ;
0 commit comments