This commit is contained in:
2025-11-26 21:34:22 +08:00
parent a2dc1f199a
commit be99a8ce1d
606 changed files with 8256 additions and 2685 deletions

View File

@@ -0,0 +1,86 @@
// Cristian Pop - https://boxophobic.com/
using UnityEngine;
using UnityEditor;
namespace Boxophobic.Constants
{
public static class Constant
{
public static Color CategoryColor
{
get
{
if (EditorGUIUtility.isProSkin)
{
return Constant.ColorDarkGray;
}
else
{
return Constant.ColorLightGray;
}
}
}
public static Color LineColor
{
get
{
if (EditorGUIUtility.isProSkin)
{
return new Color(0.15f, 0.15f, 0.15f, 1.0f);
}
else
{
return new Color(0.65f, 0.65f, 0.65f, 1.0f);
}
}
}
public static Color ColorDarkGray
{
get
{
return new Color(0.2f, 0.2f, 0.2f, 1.0f);
}
}
public static Color ColorLightGray
{
get
{
return new Color(0.82f, 0.82f, 0.82f, 1.0f);
}
}
public static GUIStyle TitleStyle
{
get
{
GUIStyle guiStyle = new GUIStyle("label")
{
richText = true,
alignment = TextAnchor.MiddleCenter
};
return guiStyle;
}
}
public static GUIStyle HeaderStyle
{
get
{
GUIStyle guiStyle = new GUIStyle("label")
{
richText = true,
fontStyle = FontStyle.Bold,
alignment = TextAnchor.MiddleLeft
};
return guiStyle;
}
}
}
}