C# Class Microsoft.VSTalk.Integration.ThemeManager

A helper class for managing the active theme.
Inheritance: IThemeManager
Mostra file Open project: Irdis/VSTalk

Private Properties

Property Type Description
ApplyThemeToElement void
AutoDetectTheme ThemeMode
GetColorFromUInt System.Windows.Media.Color
GetInstance ThemeManager
ResolveActiveTheme ThemeMode
ThemeManager System.ComponentModel

Public Methods

Method Description
ApplyTheme ( ) : void

Applies the appropriate theme based on current settings.

Init ( ) : void

Private Methods

Method Description
ApplyThemeToElement ( System.Windows.ResourceDictionary element, ThemeMode theme ) : void

Applies the specified theme to the specified element.

AutoDetectTheme ( ) : ThemeMode

Auto-detects which theme should be active based on the current IDE settings.

GetColorFromUInt ( uint number ) : Color

A simple converter for turning a uint into a Color.

GetInstance ( VSTalkPackage package ) : ThemeManager

Gets an instance of the ThemeManager class.

ResolveActiveTheme ( ) : ThemeMode

Resolves which theme should currently be active based on settings.

ThemeManager ( VSTalkPackage package ) : System.ComponentModel

Initializes a new instance of the ThemeManager class.

Method Details

ApplyTheme() public method

Applies the appropriate theme based on current settings.
public ApplyTheme ( ) : void
return void

Init() public method

public Init ( ) : void
return void