public virtual void ToggleOutlineHighlight(bool val) { if (val && shadow && selectable.interactable) { shadow.effectColor = m_appTheme.GetSelectedTheme(m_platform).baseColor; } else if (shadow) { shadow.effectColor = m_appTheme.GetSelectedTheme(m_platform).panelInteractionOutline; } }
public virtual void ToggleOutlineHighlight(bool val) { if (shadow == null) { return; } if (val && selectable.interactable) { shadow.effectColor = m_appTheme.GetSelectedTheme(m_platform).colorMix2; } else { shadow.effectColor = m_appTheme.GetSelectedTheme(m_platform).panelInteractionOutline; } }
void Start() { text = GetComponentInChildren <TextMeshProUGUI>(); text.color = m_appTheme.GetSelectedTheme(m_platform).buttonNormalTextColor; }