Issue #2228093 by dawehner | sun: Modernize theme initialization.