Class ThemeSlider
A ThemeElement boolean slider with a custom icon. Intended for toggling between our light / dark mode themes.
Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
ThemeSlider
Implements
Namespace: AdrianMiasik.Components.Specific
Assembly: Assembly-CSharp.dll
Syntax
public class ThemeSlider : ThemeElement, IColorHook
Methods
| Improve this Doc View SourceColorUpdate(Theme)
Applies our Theme changes to our referenced components when necessary. And changes our text label from depending on the current Theme.
Declaration
public override void ColorUpdate(Theme theme)
Parameters
| Type | Name | Description |
|---|---|---|
| Theme | theme | The theme to apply on our referenced components. |
Overrides
| Improve this Doc View SourceEnableAnimation()
Declaration
public void EnableAnimation()
Initialize(PomodoroTimer, Boolean)
Declaration
public override void Initialize(PomodoroTimer pomodoroTimer, bool updateColors = true)
Parameters
| Type | Name | Description |
|---|---|---|
| PomodoroTimer | pomodoroTimer | |
| System.Boolean | updateColors |
Overrides
| Improve this Doc View SourceInteract()
Presses our theme slider toggle.
Declaration
public void Interact()
OverrideDotColor(Color)
Declaration
public void OverrideDotColor(Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.Color | color |
OverrideFalseColor(Color)
What color should this slider be when False?
Declaration
public void OverrideFalseColor(Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.Color | color | The color you want the boolean slider background to be. |
OverrideTrueColor(Color)
What color should this slider be when True?
Declaration
public void OverrideTrueColor(Color color)
Parameters
| Type | Name | Description |
|---|---|---|
| UnityEngine.Color | color |
Refresh()
Declaration
public void Refresh()
SetVisualToDisable()
Declaration
public void SetVisualToDisable()
SetVisualToEnable()
Declaration
public void SetVisualToEnable()