Update system/cms/modules/addons/details.php

Add class "modal" to "Upload" link for themes. So the upload form appears into a dialog, and not into a plain white page.