Awesome labels

This commit is contained in:
2023-02-11 01:27:28 -05:00
parent f9032a9a95
commit a74f9809af
4 changed files with 39 additions and 26 deletions

View File

@@ -246,7 +246,7 @@ func (element *Piano) recalculate () {
element.flatKeys = make([]pianoKey, element.countFlats())
element.sharpKeys = make([]pianoKey, element.countSharps())
inset := element.theme.Inset(theme.PatternSunken)
inset := element.theme.Inset(theme.PatternPinboard)
bounds := inset.Apply(element.Bounds())
dot := bounds.Min
@@ -278,7 +278,7 @@ func (element *Piano) draw () {
Focused: element.Focused(),
Disabled: !element.Enabled(),
}
pattern := element.theme.Pattern(theme.PatternSunken, state)
pattern := element.theme.Pattern(theme.PatternPinboard, state)
// inset := element.theme.Inset(theme.PatternSunken)
artist.FillRectangle(element, pattern, element.Bounds())