adapted to colormapr-widget