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

Commit 58b48aa

Browse files
committed
Use a HelpBox instead
1 parent 6482545 commit 58b48aa

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

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

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,17 +227,15 @@ private void ShowMessage()
227227
{
228228
if (message != null)
229229
{
230-
GUILayout.Space(Styles.BaseSpacing + 3);
231-
GUILayout.Label(message, Styles.CenteredLabel);
232-
GUILayout.Space(Styles.BaseSpacing + 3);
230+
EditorGUILayout.HelpBox(message, MessageType.Warning);
233231
}
234232
}
235233

236234
private void ShowErrorMessage()
237235
{
238236
if (errorMessage != null)
239237
{
240-
GUILayout.Label(errorMessage, Styles.ErrorLabel);
238+
EditorGUILayout.HelpBox(errorMessage, MessageType.Error);
241239
}
242240
}
243241

0 commit comments

Comments
 (0)