using UnityEngine; using UnityEngine.UI; using TMPro; namespace SlimUI.ModernMenu{ [System.Serializable] public class ThemedUIElement : ThemedUI { [Header("Parameters")] Color outline; Image image; GameObject message; public enum OutlineStyle {solidThin, solidThick, dottedThin, dottedThick}; public bool hasImage = false; public bool isText = false; protected override void OnSkinUI(){ base.OnSkinUI(); if(hasImage){ image = GetComponent(); image.color = themeController.currentColor; } message = gameObject; if(isText){ message.GetComponent().color = themeController.textColor; } } } }