C# 클래스 Hourglass.Timing.Theme

A theme for the timer window.
상속: INotifyPropertyChanged
파일 보기 프로젝트 열기: Dziemborowicz/Hourglass 1 사용 예제들

공개 메소드들

메소드 설명
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.

보호된 메소드들

메소드 설명
OnPropertyChanged ( ) : void

Raises the PropertyChanged event.

메소드 상세

FromIdentifier() 공개 정적인 메소드

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.
리턴 Theme

FromTheme() 공개 정적인 메소드

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.
리턴 Theme

FromThemeInfo() 공개 정적인 메소드

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 .
리턴 Theme

GetPalette() 공개 메소드

Returns the unique colors used in this theme.
public GetPalette ( ) : Color[]
리턴 Color[]

OnPropertyChanged() 보호된 메소드

Raises the PropertyChanged event.
protected OnPropertyChanged ( ) : void
리턴 void

Set() 공개 메소드

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.
리턴 void

Theme() 공개 메소드

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

Theme() 공개 메소드

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.
리턴 System.ComponentModel

Theme() 공개 메소드

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.
리턴 System.ComponentModel

Theme() 공개 메소드

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.
리턴 System.ComponentModel

ToThemeInfo() 공개 메소드

Returns the representation of the Theme used for XML serialization.
public ToThemeInfo ( ) : ThemeInfo
리턴 Hourglass.Serialization.ThemeInfo