This function is used in Python Scripting.


Changes the theme in a page to the specified theme.

Note that this function only changes the theme for a single page, not the entire session. To change the theme for a session, write directly to the session.theme property instead.


system.perspective.setTheme(name, [sessionId], [pageId])

  • Parameters

String name - The theme name to switch to. Possible values are "dark" or "light".

String sessionId - Identifier of the Session to target. If omitted, the current Session will be used automatically. When targeting a different session, then the pageId parameter must be included in the call. [optional]

String pageId - Identifier of the page to target. If omitted, the current page will be used automatically. [optional]

  • Returns


  • Scope

Gateway, Perspective Session

Code Examples
Code Snippet - Changing Session Theme
# Change the current page's theme to the dark theme.

system perspective setTheme, perspective.setTheme