added legend features to sjp.setTheme