Added a Component parameter to theme cases

This commit is contained in:
Sasha Koshka
2023-03-23 17:34:08 -04:00
parent d3d3cddfef
commit 6a08d0f317
3 changed files with 64 additions and 30 deletions

View File

@@ -313,7 +313,7 @@ func (element *Piano) drawFlat (
) {
state.Pressed = pressed
pattern := element.theme.Theme.Pattern (
theme.PatternButton, state, theme.C("fun", "flatKey"))
theme.PatternButton, state, theme.C("fun", "piano", "flatKey"))
pattern.Draw(element.core, bounds)
}
@@ -324,6 +324,6 @@ func (element *Piano) drawSharp (
) {
state.Pressed = pressed
pattern := element.theme.Theme.Pattern (
theme.PatternButton, state, theme.C("fun", "sharpKey"))
theme.PatternButton, state, theme.C("fun", "piano", "sharpKey"))
pattern.Draw(element.core, bounds)
}