I would like to use the refresh icon in my application. Rather than creating my own icon I would like to use the refresh icon used in Files, in a way that the icon will be updated when the user uses a different theme.
I found the refresh icon in this path "/usr/share/icons/HighContrast/16x16/actions/view-refresh.png".
However, instead of using the hardcoded path in the code I would like to use a reference path or alias to the above icon which will show the default refresh icon based on the theme in use. In case the image cannot be located I can default to a hard coded image which will be kept in my application default icon location.
Appreciate any sample vala code or pointers to implement the above.