1
Vote

New Feature: Configurable ccent and theme

description

Mahapps offers the possibility to set accent and theme at runtime.

Add
    [XmlElement("Accent")]
    public string Accent { get; set; }
    [XmlElement("Theme")]
    public MahApps.Metro.Theme Theme { get; set; }
to ConfigurationUi.cs

and
        ThemeManager.ChangeTheme(_rootView, ThemeManager.DefaultAccents.First(acc => acc.Name == Configuration.Ui.Accent), Configuration.Ui.Theme);
to the end of the RootViewModel constructor.

That way anyone can select an accent and a theme for their installer by setting it in Configuration.xml.
Like this:
<Accent>Orange</Accent>
<Theme>Light</Theme>

comments