Skip to content
This repository was archived by the owner on Dec 5, 2024. It is now read-only.

Commit 460744b

Browse files
Moving PublishViewSpacingHeight to constant
1 parent b4fb947 commit 460744b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

src/UnityExtension/Assets/Editor/GitHub.Unity/Misc/Styles.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ public const float
2424
CommitAreaDefaultRatio = .4f,
2525
CommitAreaMaxHeight = 12 * 15f,
2626
CommitAreaPadding = 5f,
27+
PublishViewSpacingHeight = 5f,
2728
MinCommitTreePadding = 20f,
2829
FoldoutWidth = 11f,
2930
FoldoutIndentation = -2f,

src/UnityExtension/Assets/Editor/GitHub.Unity/UI/PUblishView.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ public override void OnGUI()
123123
}
124124
GUILayout.EndHorizontal();
125125

126-
GUILayout.Space(5);
126+
GUILayout.Space(Styles.PublishViewSpacingHeight);
127127

128128
GUILayout.BeginHorizontal();
129129
{
@@ -159,7 +159,7 @@ public override void OnGUI()
159159
GUI.enabled = !isBusy;
160160
repoDescription = EditorGUILayout.TextField(repoDescription);
161161
GUI.enabled = true;
162-
GUILayout.Space(5);
162+
GUILayout.Space(Styles.PublishViewSpacingHeight);
163163

164164
GUILayout.BeginVertical();
165165
{
@@ -173,7 +173,7 @@ public override void OnGUI()
173173

174174
GUILayout.BeginHorizontal();
175175
{
176-
GUILayout.Space(5);
176+
GUILayout.Space(Styles.PublishViewSpacingHeight);
177177
var repoPrivacyExplanation = togglePrivate ? PrivateRepoMessage : PublicRepoMessage;
178178
GUILayout.Label(repoPrivacyExplanation, Styles.LongMessageStyle);
179179
}
@@ -182,7 +182,7 @@ public override void OnGUI()
182182
GUILayout.EndVertical();
183183

184184

185-
GUILayout.Space(5);
185+
GUILayout.Space(Styles.PublishViewSpacingHeight);
186186

187187
if (error != null)
188188
GUILayout.Label(error, Styles.ErrorLabel);

0 commit comments

Comments
 (0)