Hi all, I've just started "playing" with Compose ...
# compose-desktop
t
Hi all, I've just started "playing" with Compose and I have seen some tantalizing hints on the web regarding using icon packs within a desktop application. Can anyone point me at any examples or samples on how I can include icons into my application. Thx
k
What kind of icon packs, vector or raster? What are you looking for specifically? Using a few icons, switching the whole set on the whole app at runtime, colorizing the icons, animating them?
t
Thanks, I was just looking for some icons and had come across this project on github
DevSrSouza/compose-icons
. when trying to get more information I came across a mention that talked about icons in Compose, so I was looking for an example of how to use them. Having said that, I kept digging and I think the codeviewer example may do what I want to do, using
androidx.compose.material.icons
that I can start poking around in
thanks for the response
c
Yes, there’s already the Material icons set available in Compose for both Android and desktop. For the full set, be sure to include the extended library. The core one only contains about 50 icons, while the extended has all styles (Outlined, Filled, etc) and all icons (~5000)
d
https://materialdesignicons.com/ and add the `.svg`s you need to your resources folder
t
Thanks guys, very helpful