pothos-widgets: wave monitor legend checkbox and common code