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?
Please sign in to leave a comment.
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.Thank you! I use the ‘LafManagerListener’ to solve this problem.