C# Class Hourglass.Timing.Theme

A theme for the timer window.
Inheritance: INotifyPropertyChanged
Afficher le fichier Open project: Dziemborowicz/Hourglass Class Usage Examples

Méthodes publiques

Méthode Description
FromIdentifier ( string identifier ) : Theme

Returns the theme for the specified identifier, or null if no such theme is loaded.

FromTheme ( ThemeType type, string identifier, string name, Theme theme ) : Theme

Returns a Theme that is a copy of another Theme.

FromThemeInfo ( ThemeInfo info ) : Theme

Returns a Theme for the specified ThemeInfo, or null if the specified ThemeInfo is null.

GetPalette ( ) : Color[]

Returns the unique colors used in this theme.

Set ( Theme theme ) : void

Sets all of the properties, except for Type and Identifier, from another instance of the Theme class.

Theme ( ThemeInfo info ) : System.ComponentModel

Initializes a new instance of the Theme class from a ThemeInfo.

Theme ( ThemeType type, string identifier, string name, Color backgroundColor, Color progressBarColor, Color progressBackgroundColor, Color expirationFlashColor, Color primaryTextColor, Color primaryHintColor, Color secondaryTextColor, Color secondaryHintColor, Color buttonColor, Color buttonHoverColor ) : System.ComponentModel

Initializes a new instance of the Theme class.

Theme ( ThemeType type, string identifier, string name, Theme theme ) : System.ComponentModel

Initializes a new instance of the Theme class.

Theme ( ThemeType type, string identifier, string name, string backgroundColor, string progressBarColor, string progressBackgroundColor, string expirationFlashColor, string primaryTextColor, string primaryHintColor, string secondaryTextColor, string secondaryHintColor, string buttonColor, string buttonHoverColor ) : System.ComponentModel

Initializes a new instance of the Theme class.

ToThemeInfo ( ) : ThemeInfo

Returns the representation of the Theme used for XML serialization.

Méthodes protégées

Méthode Description
OnPropertyChanged ( ) : void

Raises the PropertyChanged event.

Method Details

FromIdentifier() public static méthode

Returns the theme for the specified identifier, or null if no such theme is loaded.
public static FromIdentifier ( string identifier ) : Theme
identifier string The identifier for the theme.
Résultat Theme

FromTheme() public static méthode

Returns a Theme that is a copy of another Theme.
public static FromTheme ( ThemeType type, string identifier, string name, Theme theme ) : Theme
type ThemeType The type of this theme.
identifier string A unique identifier for this theme.
name string The friendly name for this theme, or null if no friendly name is specified.
theme Theme A theme from which to copy colors.
Résultat Theme

FromThemeInfo() public static méthode

Returns a Theme for the specified ThemeInfo, or null if the specified ThemeInfo is null.
public static FromThemeInfo ( ThemeInfo info ) : Theme
info Hourglass.Serialization.ThemeInfo A .
Résultat Theme

GetPalette() public méthode

Returns the unique colors used in this theme.
public GetPalette ( ) : Color[]
Résultat Color[]

OnPropertyChanged() protected méthode

Raises the PropertyChanged event.
protected OnPropertyChanged ( ) : void
Résultat void

Set() public méthode

Sets all of the properties, except for Type and Identifier, from another instance of the Theme class.
public Set ( Theme theme ) : void
theme Theme Another instance of the class.
Résultat void

Theme() public méthode

Initializes a new instance of the Theme class from a ThemeInfo.
public Theme ( ThemeInfo info ) : System.ComponentModel
info Hourglass.Serialization.ThemeInfo A .
Résultat System.ComponentModel

Theme() public méthode

Initializes a new instance of the Theme class.
public Theme ( ThemeType type, string identifier, string name, Color backgroundColor, Color progressBarColor, Color progressBackgroundColor, Color expirationFlashColor, Color primaryTextColor, Color primaryHintColor, Color secondaryTextColor, Color secondaryHintColor, Color buttonColor, Color buttonHoverColor ) : System.ComponentModel
type ThemeType The type of this theme.
identifier string A unique identifier for this theme.
name string The friendly name for this theme, or null if no friendly name is specified.
backgroundColor Color The background color of the window.
progressBarColor Color The color of the progress bar.
progressBackgroundColor Color The background color of the progress bar.
expirationFlashColor Color The color that is flashed on expiration.
primaryTextColor Color The color of the primary text.
primaryHintColor Color The color of the watermark in the primary text box.
secondaryTextColor Color The color of any secondary text.
secondaryHintColor Color The color of the watermark in any secondary text box.
buttonColor Color The color of the button text.
buttonHoverColor Color The color of the button text when the user hovers over the button.
Résultat System.ComponentModel

Theme() public méthode

Initializes a new instance of the Theme class.
public Theme ( ThemeType type, string identifier, string name, Theme theme ) : System.ComponentModel
type ThemeType The type of this theme.
identifier string A unique identifier for this theme.
name string The friendly name for this theme, or null if no friendly name is specified.
theme Theme A theme from which to copy colors.
Résultat System.ComponentModel

Theme() public méthode

Initializes a new instance of the Theme class.
public Theme ( ThemeType type, string identifier, string name, string backgroundColor, string progressBarColor, string progressBackgroundColor, string expirationFlashColor, string primaryTextColor, string primaryHintColor, string secondaryTextColor, string secondaryHintColor, string buttonColor, string buttonHoverColor ) : System.ComponentModel
type ThemeType The type of this theme.
identifier string A unique identifier for this theme.
name string The friendly name for this theme, or null if no friendly name is specified.
backgroundColor string The background color of the window.
progressBarColor string The color of the progress bar.
progressBackgroundColor string The background color of the progress bar.
expirationFlashColor string The color that is flashed on expiration.
primaryTextColor string The color of the primary text.
primaryHintColor string The color of the watermark in the primary text box.
secondaryTextColor string The color of any secondary text.
secondaryHintColor string The color of the watermark in any secondary text box.
buttonColor string The color of the button text.
buttonHoverColor string The color of the button text when the user hovers over the button.
Résultat System.ComponentModel

ToThemeInfo() public méthode

Returns the representation of the Theme used for XML serialization.
public ToThemeInfo ( ) : ThemeInfo
Résultat Hourglass.Serialization.ThemeInfo