Class AppTheme
Application theme helper.
Inherited Members
Namespace: EduCATS.Themes
Assembly: EduCATS.dll
Syntax
public class AppTheme
Constructors
AppTheme(IPlatformServices)
Declaration
public AppTheme(IPlatformServices services)
Parameters
Type | Name | Description |
---|---|---|
IPlatformServices | services |
Fields
ThemeDark
Dark theme key.
Declaration
public const string ThemeDark = "THEME_DARK"
Field Value
Type | Description |
---|---|
string |
ThemeDefault
Default (light) theme key.
Declaration
public const string ThemeDefault = "THEME_DEFAULT"
Field Value
Type | Description |
---|---|
string |
Methods
SetCurrentTheme()
Set current theme with application AppPrefs.
Declaration
public void SetCurrentTheme()
SetTheme(string, bool)
Set theme with theme key.
Declaration
public void SetTheme(string theme, bool fromPrefs = false)
Parameters
Type | Name | Description |
---|---|---|
string | theme | Theme key. |
bool | fromPrefs |