Show / Hide Table of Contents

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
ThemeElement
ThemeSlider
Implements
IColorHook
Inherited Members
ThemeElement.Timer
ThemeElement.IsInitialized()
ThemeElement.OnDestroy()
Namespace: AdrianMiasik.Components.Specific
Assembly: Assembly-CSharp.dll
Syntax
public class ThemeSlider : ThemeElement, IColorHook

Methods

| Improve this Doc View Source

ColorUpdate(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
ThemeElement.ColorUpdate(Theme)
| Improve this Doc View Source

EnableAnimation()

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

Initialize(PomodoroTimer, Boolean)

Declaration
public override void Initialize(PomodoroTimer pomodoroTimer, bool updateColors = true)
Parameters
Type Name Description
PomodoroTimer pomodoroTimer
System.Boolean updateColors
Overrides
ThemeElement.Initialize(PomodoroTimer, Boolean)
| Improve this Doc View Source

Interact()

Presses our theme slider toggle.

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

OverrideDotColor(Color)

Declaration
public void OverrideDotColor(Color color)
Parameters
Type Name Description
UnityEngine.Color color
| Improve this Doc View Source

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.

| Improve this Doc View Source

OverrideTrueColor(Color)

What color should this slider be when True?

Declaration
public void OverrideTrueColor(Color color)
Parameters
Type Name Description
UnityEngine.Color color
| Improve this Doc View Source

Refresh()

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

SetVisualToDisable()

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

SetVisualToEnable()

Declaration
public void SetVisualToEnable()

Implements

IColorHook
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX