这是indexloc提供的服务,不要输入任何密码
Skip to content

Creating default Dark/Light with other themes more flexible

Choose a tag to compare

@Dirkster99 Dirkster99 released this 28 Jul 10:59
· 51 commits to master since this release

Extending Appearance Manager interface for more flexible usage and bug fixing simple demo issues like theme selection was executed twice through theme selection changed command etc.

public interface IAppearanceManager
{
...
    /// <summary>
    /// Resets the standard themes available through the theme settings interface.
    /// Method Adds Dark and Light theme infos from MLib - calling applications can
    /// use the AddThemeResources() method to add more resources.
    /// </summary>
    /// <param name="themes">Collection of themeinfos in which Dark and Light themes
    /// with MLib resources should be added.</param>
    /// <param name="removeAllThemeInfos">Determines whether existing collection
    /// of themeinfos is removed before addinng Dark and Light themes.</param>
    void SetDefaultThemes(IThemeInfos themes, bool removeAllThemeInfos = true);
...
}