Skip to content

How to render icon menu using SVG #12330

Answered by FabianLars
mazipan asked this question in Q&A
Discussion options

You must be logged in to vote

The system's don't support svg so it requires an svg renderer in the app. iirc those are fairly large so i doubt we'd add them into tauri directly but you can still use the resvg crate for example yourself.

You can get the current window theme via https://docs.rs/tauri/2.0.0/tauri/window/struct.Window.html#method.theme but getting the OS theme directly requires some native apis (assuming there's a way to get thouse without the window). That said, if you don't use the window theme setter apis then this should be good enough i think.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mazipan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants