Table of Contents

Class ThemeOptions

Namespace
H.Modules.Theme
Assembly
H.Modules.Theme.dll
[Display(Name = "主题设置", GroupName = "显示设置", Description = "登录页面设置的信息")]
public class ThemeOptions : IocOptionInstance<ThemeOptions>, INotifyPropertyChanged, IDisplayBindable, IIconable, IDable, IDescriptionable, ISettable, INameable, IOrderable, IGroupable, ISaveable, IDefaultable, IClearable, IOptions<ThemeOptions>, ILoginedSplashLoad, ISplashLoad, ILoadable, IThemeOptions, IIconFontFamilysOptions, IColorThemeOptions
Inheritance
ThemeOptions
Implements
Inherited Members
Extension Methods

Constructors

ThemeOptions()

public ThemeOptions()

Properties

BackgroundResource

[JsonIgnore]
[PropertyNameSourcePropertyItem(typeof(ComboBoxPropertyItem), "BackgroundResources")]
[Display(Name = "背景配色")]
public IBackgroundResource BackgroundResource { get; set; }

Property Value

IBackgroundResource

BackgroundResourceSelectedIndex

[Browsable(false)]
public int BackgroundResourceSelectedIndex { get; set; }

Property Value

int

BackgroundResources

[JsonIgnore]
[Browsable(false)]
public List<IBackgroundResource> BackgroundResources { get; }

Property Value

List<IBackgroundResource>

ColorResource

[JsonIgnore]
[PropertyNameSourcePropertyItem(typeof(ComboBoxPropertyItem), "ColorResources")]
[Display(Name = "配色")]
public IColorResource ColorResource { get; set; }

Property Value

IColorResource

ColorResourceSelectedIndex

[Browsable(false)]
public int ColorResourceSelectedIndex { get; set; }

Property Value

int

ColorResources

[JsonIgnore]
[Browsable(false)]
public List<IColorResource> ColorResources { get; }

Property Value

List<IColorResource>

FontFamily

[PropertyNameSourcePropertyItem(typeof(ComboBoxPropertyItem), "FontFamilys")]
[Display(Name = "字体")]
[TypeConverter(typeof(FontFamilyConverter))]
public FontFamily FontFamily { get; set; }

Property Value

FontFamily

FontFamilys

[JsonIgnore]
[Browsable(false)]
public List<FontFamily> FontFamilys { get; }

Property Value

List<FontFamily>

FontSize

[Display(Name = "字号")]
public FontSizeThemeType FontSize { get; set; }

Property Value

FontSizeThemeType

IconFontFamily

[PropertyNameSourcePropertyItem(typeof(ComboBoxPropertyItem), "IconFontFamilys")]
[Display(Name = "图标字体")]
[TypeConverter(typeof(FontFamilyConverter))]
public FontFamily IconFontFamily { get; set; }

Property Value

FontFamily

IconFontFamilys

[JsonIgnore]
[Browsable(false)]
public List<FontFamily> IconFontFamilys { get; }

Property Value

List<FontFamily>

IsDark

[Display(Name = "切换明暗主题")]
public bool IsDark { get; set; }

Property Value

bool

Layout

[Display(Name = "布局")]
public LayoutThemeType Layout { get; set; }

Property Value

LayoutThemeType

RefreshThemeCommand

[JsonIgnore]
public RelayCommand RefreshThemeCommand { get; }

Property Value

RelayCommand

Methods

GetDefaultFolder()

protected override string GetDefaultFolder()

Returns

string

Load(out string)

public override bool Load(out string message)

Parameters

message string

Returns

bool

LoadDefault()

加载默认值。

public override void LoadDefault()

OnBackgroundResourceValueChanged(PropertyInfo, IBackgroundResource, IBackgroundResource)

public void OnBackgroundResourceValueChanged(PropertyInfo property, IBackgroundResource o, IBackgroundResource n)

Parameters

property PropertyInfo
o IBackgroundResource
n IBackgroundResource

OnColorResourceValueChanged(PropertyInfo, IColorResource, IColorResource)

public void OnColorResourceValueChanged(PropertyInfo property, IColorResource o, IColorResource n)

Parameters

property PropertyInfo
o IColorResource
n IColorResource

OnFontFamilyValueChanged(PropertyInfo, FontFamily, FontFamily)

public void OnFontFamilyValueChanged(PropertyInfo property, FontFamily o, FontFamily n)

Parameters

property PropertyInfo
o FontFamily
n FontFamily

OnFontSizeValueChanged(PropertyInfo, FontSizeThemeType, FontSizeThemeType)

public void OnFontSizeValueChanged(PropertyInfo property, FontSizeThemeType o, FontSizeThemeType n)

Parameters

property PropertyInfo
o FontSizeThemeType
n FontSizeThemeType

OnIconFontFamilyValueChanged(PropertyInfo, FontFamily, FontFamily)

public void OnIconFontFamilyValueChanged(PropertyInfo property, FontFamily o, FontFamily n)

Parameters

property PropertyInfo
o FontFamily
n FontFamily

OnLayoutValueChanged(PropertyInfo, LayoutThemeType, LayoutThemeType)

public void OnLayoutValueChanged(PropertyInfo property, LayoutThemeType o, LayoutThemeType n)

Parameters

property PropertyInfo
o LayoutThemeType
n LayoutThemeType

RefreshBrushResourceDictionary()

public void RefreshBrushResourceDictionary()

Save(out string)

public override bool Save(out string message)

Parameters

message string

Returns

bool