/// <summary>Initializes a new instance of the <see cref="Theme" /> class.</summary> public Theme() { _rawTheme = string.Empty; _backgroundSettings = new BackgroundSettings(); _borderSettings = new BorderSettings(); _controlColorStateSettings = new ControlColorStateSettings(); _textSettings = new TextSettings(); _informationSettings = new ThemeInformation(); _listItemSettings = new ListItemSettings(); _otherSettings = new OtherSettings { HelpButtonBack = new ControlColorState(), HelpButtonFore = new ControlColorState(), MinimizeButtonBack = new ControlColorState(), MinimizeButtonFore = new ControlColorState(), MaximizeButtonBack = new ControlColorState(), MaximizeButtonFore = new ControlColorState(), CloseButtonBack = new ControlColorState(), CloseButtonFore = new ControlColorState(), ScrollBar = new ColorState(), ScrollButton = new ControlColorState(), ScrollThumb = new ControlColorState() }; LoadThemeFromResources(Themes.Visual); }
/// <summary>Initializes a new instance of the <see cref="Theme" /> class.</summary> /// <param name="theme">The theme.</param> public Theme(Theme theme) : this() { _backgroundSettings = theme.BackgroundSettings; _borderSettings = theme.BorderSettings; _informationSettings = theme.InformationSettings; _textSettings = theme.TextSetting; _controlColorStateSettings = theme.ColorStateSettings; _otherSettings = theme.OtherSettings; _listItemSettings = theme.ListItemSettings; }