It looks like each feature defines getIcon(). It seems like that's the best place for each conditional:
https://github.com/mixxxdj/mixxx/blob/4845e95acb542120191f309e050d785699730048/src/library/recording/recordingfeature.cpp#L32-L34
I thought that I saw an example of conditional image rendering somewhere in the codebase but it eludes me at the moment. Know of any?
It looks like each feature defines getIcon(). It seems like that's the best place for each conditional:
https:/ /github. com/mixxxdj/ mixxx/blob/ 4845e95acb54212 0191f309e050d78 5699730048/ src/library/ recording/ recordingfeatur e.cpp#L32- L34
I thought that I saw an example of conditional image rendering somewhere in the codebase but it eludes me at the moment. Know of any?