Moved GUI logic for shading Compile button to OCaml