ya, doesn’t really work. Only parts of the vector are colored dynamically based on theme primary color
p
Peter Mandeljc
09/24/2021, 7:06 PM
Currently, I think, the best approach is still to continue defining theme and colors in xml and reference xml colors from compose. Otherwise your theme will be different until activity boots up. Taking that into account, basically nothing changed in your case :)
m
myanmarking
09/27/2021, 1:11 PM
ya kinda. but if you have single app multi fragment approach, and you have different themes for each feature, you would have to define the theme in xml parent. OR just use wrapperLayoutInflator or sth with new theme for the fragment. But since compose get’s rid of all of that. hm … idk. Maybe use LayoutInflator theme wrapper for ComposeView ?