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

Use Angular Material Icons in offline computer #1111

Open
ustas4 opened this issue Nov 21, 2024 · 2 comments
Open

Use Angular Material Icons in offline computer #1111

ustas4 opened this issue Nov 21, 2024 · 2 comments

Comments

@ustas4
Copy link

ustas4 commented Nov 21, 2024

I'm always frustrated when discover impossible use Angular Material Icons on offline PC

Propose solution
Work with static/assets folder as alternative to url with advantages to use static/assets

@ustas4
Copy link
Author

ustas4 commented Nov 22, 2024

Temporary solution may be use image [your name it].bmp with size 12×12 pixels. Placed in /assets/images/bmp. For example:
With me.button_component(on_click=callback_function):
me.image("/assets/images/bmp/menu.bmp"

@richard-to
Copy link
Collaborator

I haven't tried it yet, but it's possible you could host the icons offline as described here: https://developers.google.com/fonts/docs/material_icons

However, I'm not sure if it will work on Mesop due to how we generate the scss bundle already.

You can try including your own custom stylesheet with references to the local icons, I think.

If it does not work, you could also try creating your own icon web component that uses the local icons.

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

2 participants