Can I display the local html with dark theme in JBCefBrowser ?

Answered

I have a html in local path, when i show it in JBCefBrowser, it always be light theme.

How can i make it changed with idea theme?

0
2 comments

Hi,

Try implementing EditorColorsListener to reload the page in the browser to render the dark theme if the selected theme is dark (EditorColorsManager.getInstance().isDarkEditor()). I assume the page you display supports dark light and themes.

0

Thank you! I use the ‘LafManagerListener’ to solve this problem.

0

Please sign in to leave a comment.