File size: 623 Bytes
18a519f
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
using UnityEditor;
using UnityEngine;

namespace Unity.PlasticSCM.Editor.UI
{
    internal static class DrawSplitter
    {
        internal static void ForHorizontalIndicator()
        {
            ForWidth(EditorGUIUtility.currentViewWidth);
        }

        internal static void ForWidth(float width)
        {
            GUIStyle style = UnityStyles.SplitterIndicator;

            Rect splitterRect = GUILayoutUtility.GetRect(
                width,
                UnityConstants.SPLITTER_INDICATOR_HEIGHT,
                style);

            GUI.Label(splitterRect, string.Empty, style);   
        }
    }
}