Vereinsmeisterschaften  22aa7800eae54b428d40e835886cefe1fdefdfdf
This is a software that can be used to manage the internal competition of the swimming club Illertissen called "Vereinsmeisterschaften".
Loading...
Searching...
No Matches
Vereinsmeisterschaften.Services.ThemeSelectorService Class Reference

Service to manage the application theme selection. More...

Inheritance diagram for Vereinsmeisterschaften.Services.ThemeSelectorService:
Vereinsmeisterschaften.Contracts.Services.IThemeSelectorService

Public Member Functions

 ThemeSelectorService ()
 Constructor for the ThemeSelectorService.
 
void InitializeTheme ()
 Initializes the theme manager with high contrast themes and set the current theme.
 
void SetTheme (AppTheme theme)
 Sets the application theme based on the provided AppTheme enum value.
Parameters
themeAppTheme enum value to determine the theme to set

 
AppTheme GetCurrentTheme ()
 Gets the current application theme from the application properties.
Returns
AppTheme

 

Static Private Attributes

const string HcDarkTheme = "pack://application:,,,/Styles/Themes/HC.Dark.Blue.xaml"
 
const string HcLightTheme = "pack://application:,,,/Styles/Themes/HC.Light.Blue.xaml"
 

Detailed Description

Service to manage the application theme selection.

Definition at line 15 of file ThemeSelectorService.cs.

Constructor & Destructor Documentation

◆ ThemeSelectorService()

Vereinsmeisterschaften.Services.ThemeSelectorService.ThemeSelectorService ( )

Constructor for the ThemeSelectorService.

Definition at line 23 of file ThemeSelectorService.cs.

Member Function Documentation

◆ GetCurrentTheme()

AppTheme Vereinsmeisterschaften.Services.ThemeSelectorService.GetCurrentTheme ( )

Gets the current application theme from the application properties.

Returns
AppTheme

Implements Vereinsmeisterschaften.Contracts.Services.IThemeSelectorService.

Definition at line 59 of file ThemeSelectorService.cs.

◆ InitializeTheme()

void Vereinsmeisterschaften.Services.ThemeSelectorService.InitializeTheme ( )

Initializes the theme manager with high contrast themes and set the current theme.

Implements Vereinsmeisterschaften.Contracts.Services.IThemeSelectorService.

Definition at line 28 of file ThemeSelectorService.cs.

◆ SetTheme()

void Vereinsmeisterschaften.Services.ThemeSelectorService.SetTheme ( AppTheme theme)

Sets the application theme based on the provided AppTheme enum value.

Parameters
themeAppTheme enum value to determine the theme to set

Implements Vereinsmeisterschaften.Contracts.Services.IThemeSelectorService.

Definition at line 41 of file ThemeSelectorService.cs.

Member Data Documentation

◆ HcDarkTheme

const string Vereinsmeisterschaften.Services.ThemeSelectorService.HcDarkTheme = "pack://application:,,,/Styles/Themes/HC.Dark.Blue.xaml"
staticprivate

Definition at line 17 of file ThemeSelectorService.cs.

◆ HcLightTheme

const string Vereinsmeisterschaften.Services.ThemeSelectorService.HcLightTheme = "pack://application:,,,/Styles/Themes/HC.Light.Blue.xaml"
staticprivate

Definition at line 18 of file ThemeSelectorService.cs.


The documentation for this class was generated from the following file: