optimize a bit the code related to obtaining current icon theme