Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
added syntax highlighting to code blocks
  • Loading branch information
anarchie347 authored May 15, 2023
1 parent a393910 commit 54961a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@ Usage: [Github wiki](https://github.com/anarchie347/Themes/wiki)

## Getting started:
Replace
```
```csharp
internal partial class Form1 : Form
```
With
```
```csharp
internal partial class Form1 : ThemeableForm<Theme>
```
`Theme` is the implementation of the `Theme` class used for this form. If you want to define your own schema for a theme, put that class inside the `<>`. You can see how to create a new schema [here](https://github.com/anarchie347/Themes/wiki/Defining-a-Theme-schema)


```
```csharp
ThemeableButton myButton = new();
myButton.ThemeBackColor = () => CurrentTheme.PrimaryColor;
myButton.ThemeForeColor = () => CurrentTheme.SecondaryColor;
Expand Down

0 comments on commit 54961a5

Please sign in to comment.