Skip to content

Command to Generate Icon Resources Using Iconify #16

@aynakeya

Description

@aynakeya

I noted that fyne has some svg icons builtin https://docs.fyne.io/explore/icons.html.

would it be feasible to introduce a feature allowing users to generate their own icon resources directly from Iconify using command similar to fyne bundle.

eg.

fyne iconify add mdi:account

will generate following content

package icons

var MdiAccount = theme.NewThemedResource(&fyne.StaticResource{
	StaticName:    "MdiAccount.svg",
	StaticContent: []byte("<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\"><path fill="black" d="M12 4a4 4 0 0 1 4 4a4 4 0 0 1-4 4a4 4 0 0 1-4-4a4 4 0 0 1 4-4m0 10c4.42 0 8 1.79 8 4v2H4v-2c0-2.21 3.58-4 8-4"/></svg>"),
})

svg from https://icon-sets.iconify.design/mdi/account/

all icons can be found in https://github.com/iconify/icon-sets repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions