Burp Suite User Forum

Login to post

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

Hi. I haven't yet, I was hoping to avoid it. Thanks

You need to Log in to post a reply. Or register here, for free.