diff --git a/elements/basic/icon.go b/elements/basic/icon.go index 3b6750f..a6894fb 100644 --- a/elements/basic/icon.go +++ b/elements/basic/icon.go @@ -24,6 +24,16 @@ func NewIcon (id theme.Icon, size theme.IconSize) (element *Icon) { return } +func (element *Icon) SetIcon (id theme.Icon, size theme.IconSize) { + element.id = id + element.size = size + element.updateMinimumSize() + if element.core.HasImage() { + element.draw() + element.core.DamageAll() + } +} + // SetTheme sets the element's theme. func (element *Icon) SetTheme (new theme.Theme) { if new == element.theme.Theme { return } diff --git a/theme/assets/wintergreen-icons-small.png b/theme/assets/wintergreen-icons-small.png index 9ddeec0..10cdcee 100644 Binary files a/theme/assets/wintergreen-icons-small.png and b/theme/assets/wintergreen-icons-small.png differ