Recreated part of an older PR but for detecting the theme instead.
Updated thememanager again.
Removed static properties and detection of a theme from app resources.
Merge pull request #578 from Amrykid/theme-manager-detect-theme

Follow up for #522