Changed the order of the Theme.Pattern method

This commit is contained in:
2023-02-12 10:58:23 -05:00
parent 82e92f1e2e
commit 7f0462d588
3 changed files with 6 additions and 6 deletions

View File

@@ -307,7 +307,7 @@ func (element *Piano) drawFlat (
) {
state.Pressed = pressed
pattern := element.theme.Theme.Pattern (
theme.PatternButton, theme.C("fun", "flatKey"), state)
theme.PatternButton, state, theme.C("fun", "flatKey"))
artist.FillRectangle(element, pattern, bounds)
}
@@ -318,6 +318,6 @@ func (element *Piano) drawSharp (
) {
state.Pressed = pressed
pattern := element.theme.Theme.Pattern (
theme.PatternButton, theme.C("fun", "sharpKey"), state)
theme.PatternButton, state, theme.C("fun", "sharpKey"))
artist.FillRectangle(element, pattern, bounds)
}