Compare commits

..

No commits in common. "73a5fab0bc8029e85c2c08adce71c5c86ade6704" and "7e275cc70e6aaa2ca08a101e30254eebc170a061" have entirely different histories.

2 changed files with 0 additions and 4 deletions

View File

@ -69,7 +69,6 @@ func (this *Button) SetIcon (id tomo.Icon) {
if this.icon != nil {
this.Insert(this.icon, this.label)
}
this.SetTag("icon", this.icon != nil)
this.applyLayout()
}

View File

@ -27,9 +27,6 @@ func NewIcon (icon tomo.Icon, size tomo.IconSize) *Icon {
// SetIcon sets the icon.
func (this *Icon) SetIcon (icon tomo.Icon, size tomo.IconSize) {
iconTexture := icon.Texture(size)
bounds := iconTexture.Bounds()
this.SetAttr(tomo.AIcon(icon, size))
this.SetAttr(tomo.AMinimumSize(bounds.Dx(), bounds.Dy()))
this.SetTag(iconSizeString(size), true)
}