Refactor into a separate applyTheme method
Format according to KDELibs style
Handle multiple sessions