Skip to content

Commit d2d25ee

Browse files
committed
Incorporate feedback from go-lint
1 parent cd934ff commit d2d25ee

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

streamdeck.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ type Button interface {
2121
ButtonDisplay
2222
}
2323

24+
// ButtonDecorator represents a way to modify the button image, for example to add a highlight or an "on/off" hint
2425
type ButtonDecorator interface {
2526
Apply(image.Image) image.Image
2627
}
@@ -54,6 +55,7 @@ func (sd *StreamDeck) AddButton(btnIndex int, b Button) {
5455
sd.updateButton(b)
5556
}
5657

58+
// SetDecorator imposes a ButtonDecorator onto a given button
5759
func (sd *StreamDeck) SetDecorator(btnIndex int, d ButtonDecorator) {
5860
sd.decorators[btnIndex] = d
5961
// If there's a button there, update it

0 commit comments

Comments
 (0)