Skip to content
Snippets Groups Projects
Commit 744e58d2 authored by Don Okuda's avatar Don Okuda
Browse files

Add AuthHeaderBoxStyle

parent 6320bec7
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,7 @@ namespace GitHub.Unity
textFieldStyle,
commitDescriptionFieldStyle,
toggleMixedStyle,
authHeaderBoxStyle,
genericBoxStyle;
static Texture2D
modifiedStatusIcon,
......@@ -368,6 +369,21 @@ namespace GitHub.Unity
}
}
public static GUIStyle AuthHeaderBoxStyle
{
get
{
if (authHeaderBoxStyle == null)
{
authHeaderBoxStyle = new GUIStyle(HeaderBoxStyle);
authHeaderBoxStyle.name = "AuthHeaderBoxStyle";
authHeaderBoxStyle.padding = new RectOffset(10,10,0,5);
}
return authHeaderBoxStyle;
}
}
public static GUIStyle GenericBoxStyle
{
get
......
......@@ -45,12 +45,10 @@ namespace GitHub.Unity
// Not really sure why I need to divide by 4... Retina perhaps??
// If so, seems very brittle...
cellWidth = (Screen.width / 4) - Convert.ToInt32(Styles.BaseSpacing * 2);
Debug.Log(cellWidth);
scroll = GUILayout.BeginScrollView(scroll);
{
Styles.HeaderBoxStyle.padding = new RectOffset(10,10,5,10);
Rect authHeader = EditorGUILayout.BeginHorizontal(Styles.HeaderBoxStyle);
Rect authHeader = EditorGUILayout.BeginHorizontal(Styles.AuthHeaderBoxStyle);
{
GUILayout.BeginVertical(GUILayout.Width(16));
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment