Remove NewApplicationIcon constructor for Icon
This commit is contained in:
parent
858129ec33
commit
c8bcb9e428
10
icon.go
10
icon.go
@ -31,16 +31,6 @@ func NewMimeIcon (mime data.Mime, size theme.IconSize) *Icon {
|
||||
return this
|
||||
}
|
||||
|
||||
// NewApplicationIcon creates a new icon from an application description.
|
||||
func NewApplicationIcon (id theme.ApplicationIcon, size theme.IconSize) *Icon {
|
||||
this := &Icon {
|
||||
Box: tomo.NewBox(),
|
||||
}
|
||||
theme.Apply(this, theme.R("objects", "Icon", size.String()))
|
||||
this.SetTexture(id.Texture(size))
|
||||
return this
|
||||
}
|
||||
|
||||
func (this *Icon) SetTexture (texture canvas.Texture) {
|
||||
this.Box.SetTexture(texture)
|
||||
if texture == nil {
|
||||
|
Loading…
Reference in New Issue
Block a user