Files

30 lines
1.1 KiB
C#
Raw Permalink Normal View History

2026-06-04 23:22:13 +03:00
using UnityEngine;
using UnityEngine.UI;
namespace OTGIntegrated.UI
{
public static class UITheme
{
public static readonly Color Panel = new Color(0.04f, 0.05f, 0.065f, 0.88f);
public static readonly Color PanelSoft = new Color(0.07f, 0.085f, 0.11f, 0.82f);
public static readonly Color Gold = new Color(0.92f, 0.68f, 0.24f, 1f);
public static readonly Color Blue = new Color(0.18f, 0.48f, 0.84f, 1f);
public static readonly Color Red = new Color(0.78f, 0.18f, 0.16f, 1f);
public static readonly Color Text = new Color(0.94f, 0.93f, 0.88f, 1f);
public static readonly Color MutedText = new Color(0.68f, 0.7f, 0.74f, 1f);
public static void ApplyText(Text text, Font font, int size, TextAnchor anchor)
{
if (text == null)
{
return;
}
text.font = font != null ? font : Resources.GetBuiltinResource<Font>("Arial.ttf");
text.fontSize = size;
text.alignment = anchor;
text.color = Text;
}
}
}