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 SourceGetTheme()
Returns our current active Theme
Declaration
public Theme GetTheme()
Returns
Type | Description |
---|---|
Theme |
Register(PomodoroTimer)
Declaration
public void Register(PomodoroTimer pomodoroTimer)
Parameters
Type | Name | Description |
---|---|---|
PomodoroTimer | pomodoroTimer |
SetToDarkMode()
Sets our Theme preference to dark mode, and update's all our necessary components.
Declaration
public void SetToDarkMode()
SetToLightMode()
Sets our Theme preference to light mode, and update's all our necessary components.
Declaration
public void SetToLightMode()
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 |
SwitchToDefaultTheme()
Declaration
public void SwitchToDefaultTheme()
SwitchToHalloweenTheme()
Declaration
public void SwitchToHalloweenTheme()