Fix layer toolbox UI on high-DPI screens