-
Notifications
You must be signed in to change notification settings - Fork 0
Creating Themes
anarchie347 edited this page May 15, 2023
·
2 revisions
Because most projects will probably use their own schema, Themes does not come with any predefined Themes
You should create a static class containing instances of your Theme schema (or the defualt one if that is what you are using)
Properties in a Theme schema should all be init
only setters, so the instances of the schema must be initialised.
Example (using the default Schema)
public staic class MyThemes
public static readonly Anarchie.Themes.Theme Dark = new() {
PrimaryColor = Color.DarkGray,
SecondaryColor = Color.LightGray
}
}
You can change the theme of your form by setting the value of the CurrentTheme
property for the form