Activity Forums Salesforce® Discussions What is the use of UITheme? 

  • Piyush

    Member
    October 21, 2019 at 4:20 AM

    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.

  • Mounica

    Member
    August 4, 2022 at 4:58 AM

    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?

  • Rahul kapoor

    Member
    October 28, 2022 at 11:24 AM

    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.

Popular Salesforce Blogs

Popular Salesforce Videos

Pros & Cons of Lightning Component vs. 3rd party frameworks in Salesforce UI development

Video in

Nikita drops by to share his invaluable experience of using popular 3rd party frameworks in Salesforce. http://media.blubrry.com/salesforceway/audio.xmcdn.com/group42/M05/25/57/wKgJ81rXk6XjaZIAAU_I_KtprFM998.m4a