untangle-puzzlegame/Library/PackageCache/com.unity.collab-proxy@50ac96531b63/Editor/UI/DrawUserIcon.cs
2025-04-17 17:33:08 -04:00

25 lines
660 B
C#

using UnityEngine;
namespace Unity.PlasticSCM.Editor.UI
{
internal static class DrawUserIcon
{
internal static void ForPendingChangesTab()
{
Rect rect = BuildUserIconAreaRect(35f);
GUI.DrawTexture(rect, Images.GetEmptyGravatar());
}
static Rect BuildUserIconAreaRect(float sizeOfImage)
{
GUIStyle commentTextAreaStyle = UnityStyles.PendingChangesTab.CommentTextArea;
Rect result = GUILayoutUtility.GetRect(sizeOfImage, sizeOfImage); // Needs to be a square
result.x = commentTextAreaStyle.margin.left;
return result;
}
}
}