~eliasnaur/gio#47:
Support for jpg and svg formats in iconbutton

Would there be support for jpg and svg image formats for iconbutton widget in gio?

Status
REPORTED
Submitter
~metaclips
Assigned to
No-one
Submitted
22 days ago
Updated
20 days ago
Labels
No labels applied.

~eliasnaur 21 days ago

On Tue Oct 22, 2019 at 4:56 PM ~metaclips wrote:

Would there be support for jpg and svg image formats for iconbutton widget in gio?

Sure, I don't see why not. Perhaps ImageButton and some way to convert an SVG to something more render friendly (IconVG?).

~metaclips 21 days ago

This would be nice. Converting svg to iconvg should be internal though so as to reduce complexity to users, probably get extension type then convert to iconvg if need be.

~eliasnaur 21 days ago

On Wed Oct 23, 2019 at 12:28 PM ~metaclips wrote:

This would be nice. Converting svg to iconvg should be internal though so as to reduce complexity to users, probably get extension type then convert to iconvg if need be.

Automatic conversion would be nice, but I'm not sure it's feasible, since the SVG format contains a lot of features that are hard to support.

There is a reason Android has its own simplified vector format (Vector Drawables).

Nigel Tao wrote the beginnings of a converter:

https://github.com/golang/exp/blob/master/shiny/materialdesign/icons/gen.go

~metaclips 20 days ago

Nice, would check out the converter. Hopefully this should suffice till imageButton is implemented. Thanks.

Register here or Log in to comment, or comment via email.