You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
762 B
C#
29 lines
762 B
C#
3 months ago
|
#if UNITY_EDITOR
|
||
|
using UnityEditor;
|
||
|
#endif
|
||
|
using UnityEngine.UIElements;
|
||
|
|
||
|
namespace AV.UITK
|
||
|
{
|
||
|
public static partial class FluentUITK
|
||
|
{
|
||
|
public static bool isProSkin =>
|
||
|
#if UNITY_EDITOR
|
||
|
EditorGUIUtility.isProSkin;
|
||
|
#else
|
||
|
false;
|
||
|
#endif
|
||
|
|
||
|
internal static StyleSheet coreStyles => FindStyleSheet(guid: "a65295aa1e4ad0e418b38767b4b62004");
|
||
|
internal static StyleSheet coreStylesLight => FindStyleSheet(guid: "26058bff54cdbee4fb77f501595a2baf");
|
||
|
|
||
|
|
||
|
internal static void AddCoreStyles(VisualElement x)
|
||
|
{
|
||
|
x.styleSheets.Add(coreStyles);
|
||
|
|
||
|
if (!isProSkin)
|
||
|
x.styleSheets.Add(coreStylesLight);
|
||
|
}
|
||
|
}
|
||
|
}
|