Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add Command to Generate Icon Resources Using Iconify #16

Open
aynakeya opened this issue Apr 10, 2024 · 1 comment
Open

Comments

@aynakeya
Copy link

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.

@aynakeya
Copy link
Author

I can work on it if this feature is a suitable additioon to fyne commands : )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant