High/Low DPI Adapting

The Qt UI would change the size according to the logical DPI of the computer
Only Windows and Linux have been tested. (Should also work on Mac but have not tested).
The function is unfinished.

Fixes #576 
I don't see why this should be a dictionary. Having `logical_dpi_x` and `logical_dpi_y` seems simpler.