Can I display the local html with dark theme in JBCefBrowser ?
已回答
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?
请先登录再写评论。
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.