@@ -335,10 +335,10 @@ public void Draw(bool readOnly, Rect? rect = null) {
335335 hasMatchMenu = DrawAssignButton ( rect . HasValue ? ( Rect ? ) Helper . ScaleRect ( rect . Value , 1 , 0.5F , 0 , 0 , - EditorGUIUtility . singleLineHeight , - 7.5F , 15 , 15 ) : null ) ;
336336 if ( ! hasMatchMenu && ! readOnly && referenceModeBtn ) {
337337 if ( rect . HasValue ) {
338- if ( GUI . Button ( rect . Value . ScaleRect ( 1 , 0.5F , 0 , 0 , - EditorGUIUtility . singleLineHeight , - 7.5F , 15 , 15 ) , EditorGUIUtility . IconContent ( "_Menu" ) , EditorStyles . miniLabel ) )
338+ if ( GUI . Button ( rect . Value . ScaleRect ( 1 , 0.5F , 0 , 0 , - EditorGUIUtility . singleLineHeight , - 7.5F , 15 , 15 ) , EditorGUIUtility . IconContent ( "_Menu" ) , Helper . IconButtonStyle ) )
339339 ShowMenu ( rect . Value ) ;
340340 } else {
341- if ( GUILayout . Button ( EditorGUIUtility . IconContent ( "_Menu" ) , EditorStyles . miniLabel , GUILayout . ExpandWidth ( false ) ) )
341+ if ( GUILayout . Button ( EditorGUIUtility . IconContent ( "_Menu" ) , Helper . IconButtonStyle , GUILayout . ExpandWidth ( false ) ) )
342342 ShowMenu ( menuButtonRect ) ;
343343 if ( Event . current . type == EventType . Repaint )
344344 menuButtonRect = GUILayoutUtility . GetLastRect ( ) ;
@@ -449,8 +449,8 @@ private bool DrawAssignButton(Rect? rect) {
449449 hasButton = true ;
450450 if (
451451 rect . HasValue ?
452- GUI . Button ( rect . Value , EditorGUIUtility . IconContent ( "Linked" ) , EditorStyles . miniLabel ) :
453- GUILayout . Button ( EditorGUIUtility . IconContent ( "Linked" ) , EditorStyles . miniLabel , GUILayout . ExpandWidth ( false ) )
452+ GUI . Button ( rect . Value , EditorGUIUtility . IconContent ( "Linked" ) , Helper . IconButtonStyle ) :
453+ GUILayout . Button ( EditorGUIUtility . IconContent ( "Linked" ) , Helper . IconButtonStyle , GUILayout . ExpandWidth ( false ) )
454454 ) {
455455 drawer . TryApplyValue ( rawValue ) ;
456456 finishedDrawer = drawer ;
@@ -728,9 +728,9 @@ private void DrawUnknownField(bool readOnly, object target, Rect? position = nul
728728 return ;
729729 bool clicked ;
730730 if ( ! position . HasValue )
731- clicked = GUILayout . Button ( EditorGUIUtility . IconContent ( "MoreOptions" ) , EditorStyles . miniLabel , GUILayout . ExpandWidth ( false ) ) ;
731+ clicked = GUILayout . Button ( EditorGUIUtility . IconContent ( "MoreOptions" ) , Helper . IconButtonStyle , GUILayout . ExpandWidth ( false ) ) ;
732732 else
733- clicked = GUI . Button ( position . Value , EditorGUIUtility . IconContent ( "MoreOptions" ) , EditorStyles . miniLabel ) ;
733+ clicked = GUI . Button ( position . Value , EditorGUIUtility . IconContent ( "MoreOptions" ) , Helper . IconButtonStyle ) ;
734734 if ( clicked )
735735 InspectorChildWindow . Open ( target , true , privateFields , obsolete , true , false , this ) ;
736736 }
0 commit comments