Activity › Forums › Salesforce® Discussions › What is the use of UITheme?
-
What is the use of UITheme?
Posted by Saddam on October 18, 2019 at 1:22 PMWhat is the use of UITheme?
Rahul kapoor replied 3 years, 7 months ago 4 Members · 3 Replies -
3 Replies
-
Hi,
UITheme returns the look and feel the user is supposed to see, while $User.UIThemeDisplayed returns the look and feel the user actually sees. For example, a user may have the preference and permissions to see the Lightning Experience look and feel, but if they are using a browser that doesn’t support that look and feel, for example, older versions of Internet Explorer, $User.UIThemeDisplayed returns a different value.
- [adinserter block='9']
-
Does anyone know how to set that issue in one org ? We have to set classics in vf pages and lightning experiences in aura components. Is there any condition on that? How to fix that issue?
-
UITheme is used to return the look and feel the user is supposed to see, while $User. UIThemeDisplayed returns the look and feel the user actually sees.
Log In to reply.