Skip to content

Defining a Theme schema

anarchie347 edited this page May 15, 2023 · 2 revisions

Defining a Theme schema

Themes comes with a basic schema that contains PrimaryColor, SecondaryColor, FormBackColor, FormBackImage

If you want your project to have a more complex theme that uses more colors and images, you can create a new class that inherits from Anarchie.Themes.Theme.

The properties should have {get; init;} as their accessors, and should have a default value e.g. null.

Example

public Color[] PlayerColors {get; init;} = Array.Empty<Color>();
Clone this wiki locally