Added a Component parameter to theme cases
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user