Comment on page
Is Light or Dark Mode
These properties check whether the current theme mode is light or dark. You can access this when the Source is set to Global Properties. This can be useful if you have certain UI elements that should appear differently in dark and light modes.
Here's an example of how you can use this variable to change the theme mode of your app. Note: In this example, you can use any of these properties (i.e., "Is Light Mode" or "Is Dark Mode") instead of using the app state variable to check the theme mode. Here's how you do it:
Using the "Is Light Mode" or "Is Dark Mode" property to control theme mode