@@ -1382,7 +1382,7 @@ internal static Rect GetInspectorTitleBarObjectFoldoutRenderRect(Rect rect)
1382
1382
1383
1383
internal static Rect GetInspectorTitleBarObjectFoldoutRenderRect ( Rect rect , GUIStyle baseStyle )
1384
1384
{
1385
- return new Rect ( rect . x + EditorStyles . foldout . margin . left + 1f , rect . y + ( rect . height - kInspTitlebarFoldoutIconWidth ) / 2 + ( baseStyle != null ? baseStyle . padding . top : 0 ) , kInspTitlebarFoldoutIconWidth , kInspTitlebarFoldoutIconWidth ) ;
1385
+ return new Rect ( rect . x + EditorStyles . titlebarFoldout . margin . left + 1f , rect . y + ( rect . height - kInspTitlebarFoldoutIconWidth ) / 2 + ( baseStyle != null ? baseStyle . padding . top : 0 ) , kInspTitlebarFoldoutIconWidth , kInspTitlebarFoldoutIconWidth ) ;
1386
1386
}
1387
1387
1388
1388
[ SuppressMessage ( "ReSharper" , "RedundantCast.0" ) ]
@@ -1551,7 +1551,7 @@ private static void DoObjectFoldoutInternal(bool foldout, Rect renderRect, int i
1551
1551
{
1552
1552
case EventType . Repaint :
1553
1553
bool isPressed = GUIUtility . hotControl == id ;
1554
- EditorStyles . foldout . Draw ( renderRect , isPressed , isPressed , foldout , false ) ;
1554
+ EditorStyles . titlebarFoldout . Draw ( renderRect , isPressed , isPressed , foldout , false ) ;
1555
1555
break ;
1556
1556
}
1557
1557
@@ -5200,7 +5200,7 @@ internal static bool ToggleTitlebar(Rect position, GUIContent label, bool foldou
5200
5200
5201
5201
GUIStyle baseStyle = EditorStyles . inspectorTitlebar ;
5202
5202
GUIStyle textStyle = EditorStyles . inspectorTitlebarText ;
5203
- GUIStyle foldoutStyle = EditorStyles . foldout ;
5203
+ GUIStyle foldoutStyle = EditorStyles . titlebarFoldout ;
5204
5204
5205
5205
Rect toggleRect = new Rect ( position . x + baseStyle . padding . left , position . y + baseStyle . padding . top , kInspTitlebarIconWidth , kInspTitlebarIconWidth ) ;
5206
5206
Rect textRect = new Rect ( toggleRect . xMax + kInspTitlebarSpacing , toggleRect . y , 200 , kInspTitlebarIconWidth ) ;
@@ -5248,7 +5248,7 @@ internal static bool FoldoutTitlebar(Rect position, GUIContent label, bool foldo
5248
5248
5249
5249
break ;
5250
5250
case EventType . Repaint :
5251
- GUIStyle foldoutStyle = EditorStyles . foldout ;
5251
+ GUIStyle foldoutStyle = EditorStyles . titlebarFoldout ;
5252
5252
Rect textRect =
5253
5253
new Rect (
5254
5254
position . x + baseStyle . padding . left +
0 commit comments