How to detect if a private app is currently in light or dark mode? | Community
Skip to main content

How to detect if a private app is currently in light or dark mode?

  • May 16, 2025
  • 1 reply
  • 0 views

Jihoon11

Is there a way for a private app to detect if the current agent UI is in light or dark mode?

Can we use Client.get to detect if the current agent is in dark or light mode?

Also, is there a way for the app to detect when the display changes from dark to light mode, such as through an event?

1 reply

  • May 20, 2025

Hello, unfortunately this isn't supported in ZAF or the API. You might be able to get away with some custom code that looks at the window.