The Burp Suite User Forum was discontinued on the 1st November 2024.

Burp Suite User Forum

For support requests, go to the Support Center. To discuss with other Burp users, head to our Discord page.

SUPPORT CENTER DISCORD

Detect theme in jython

Chris | Last updated: May 26, 2020 06:59PM UTC

Hi. Is there a way to detect the current theme, ideally in jython, without having to find and read the user config json file? I have an extension which uses an HTML JTextPane, but the default font colours are hard to read when using the Darcula theme; I'd like to be able to change the colours based on the theme. Thanks

Uthman, PortSwigger Agent | Last updated: May 27, 2020 07:52AM UTC

It doesn't look like there is any way to retrieve that information using the Extender API. The loadConfigFromJson method only imports a project-level configuration and ignores any user-level configuration options. Have you managed to detect the theme successfully by reading the UserConfigPro.json file?

Chris | Last updated: May 28, 2020 04:46PM UTC