Detect the Lightning Console UI Theme in Visualforce Pages

Your Visualforce pages can detect whether they’re loaded in Lightning apps with console navigation versus Lightning apps with standard navigation. This feature is new in Lightning Experience.

Check for the Theme4u value in UI context detection logic in the console, for example, using the $User.UITheme and $User.UIThemeDisplayed global variables.