File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
src/org/ice1000/julia/lang/editing Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -6,6 +6,7 @@ import com.intellij.openapi.wm.ToolWindow
66import com.intellij.openapi.wm.ToolWindowFactory
77import com.intellij.psi.PsiElement
88import com.intellij.ui.content.ContentFactory
9+ import com.intellij.util.ui.UIUtil
910import org.apache.commons.lang.StringEscapeUtils
1011import org.ice1000.julia.lang.JuliaBundle
1112import org.ice1000.julia.lang.module.*
@@ -45,8 +46,13 @@ class JuliaDocumentProvider : AbstractDocumentationProvider() {
4546
4647 companion object {
4748 // language=HTML
48- val STYLE_HTML
49- get() = """ <style>code{color:rgb(255,121,198)}</style><script>console.log(2333);</script>"""
49+ val STYLE_HTML : String
50+ get() =
51+ if (UIUtil .isUnderDarcula()) {
52+ """ <style>code{color:rgb(255,121,198)}</style>"""
53+ } else {
54+ """ <style>code{color:rgb(176,55,118)}</style>"""
55+ }
5056 }
5157}
5258
You can’t perform that action at this time.
0 commit comments