fn make_controls( ctx: &mut EventCtx<'_>, app: &App, opts: &Options, legend: Option<Widget>) -> Panel