Show / Hide Table of Contents

Class ThemeManager

Responsible for executing and keeping track of themed elements and active themes. Holds our current active theme and is responsible for changing between themes.

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
ThemeManager
Namespace: AdrianMiasik.Components.Core
Assembly: Assembly-CSharp.dll
Syntax
public class ThemeManager : MonoBehaviour

Methods

| Improve this Doc View Source

GetTheme()

Returns our current active Theme

Declaration
public Theme GetTheme()
Returns
Type Description
Theme
| Improve this Doc View Source

Register(PomodoroTimer)

Declaration
public void Register(PomodoroTimer pomodoroTimer)
Parameters
Type Name Description
PomodoroTimer pomodoroTimer
| Improve this Doc View Source

SetToDarkMode()

Sets our Theme preference to dark mode, and update's all our necessary components. Used as a UnityEvent on our ThemeSlider.

Declaration
public void SetToDarkMode()
| Improve this Doc View Source

SetToLightMode()

Sets our Theme preference to light mode, and update's all our necessary components. Used as a UnityEvent on our ThemeSlider.

Declaration
public void SetToLightMode()
| Improve this Doc View Source

SwitchTheme(Theme)

Sets our current active Theme to the provided Theme. This will transfer all our IColorHook element's to the new Theme as well.

Declaration
public void SwitchTheme(Theme desiredTheme)
Parameters
Type Name Description
Theme desiredTheme
| Improve this Doc View Source

SwitchToDefaultTheme()

Declaration
public void SwitchToDefaultTheme()
| Improve this Doc View Source

SwitchToHalloweenTheme()

Declaration
public void SwitchToHalloweenTheme()
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX