简体   繁体   English

如何将文本颜色更改为具有深色背景的智能工具窗口文本区域的浅色?

[英]How to change the text color to light of a intellij tool window text area with a dark background?

Using Material Theme UI for IDEA 2020.2.2 with a Custom Dark Theme which Background Color is: #0C0A09 completely black.使用 IDEA 2020.2.2 的 Material Theme UI 和自定义深色主题,背景颜色为:#0C0A09 全黑。 When using "Spellbook" plugin for note taking, its Tool Window pane where the text displays, is nearly invisible, not clear to read.当使用“Spellbook”插件做笔记时,显示文本的工具窗口面板几乎不可见,看不清。

IDE截图 法术书截图 突出显示的拼写书文本的屏幕截图

How to change this 'text area' foreground color to white or lighter?如何将此“文本区域”前景色更改为白色或更浅?

File->Settings->Editor->Color & Fonts->General->Default text

按照上述路径并从那里更改字体背景颜色或字体颜色。

I've encountered this problem as well.我也遇到过这个问题。 It appears to be related to a specific UI element (text panes that can display HTML) and I've only encountered this problem in IDE version > 2019.3.它似乎与特定的 UI 元素(可以显示 HTML 的文本窗格)有关,我只在 IDE 版本 > 2019.3 中遇到过这个问题。 In previous versions of Intellij the font color used to invert automatically based upon the selected theme.在以前版本的 Intellij 中,字体颜色用于根据所选主题自动反转。 I'm not sure what happened across versions of the IDE, but, for me, starting with version 2019.3 the font color no longer automatically inverted in text panes for me when I went from a light to dark theme or vice versa.我不确定 IDE 的各个版本发生了什么,但对我来说,从 2019.3 版开始,当我从浅色主题变为深色主题时,字体颜色不再自动在文本窗格中反转,反之亦然。 But I have had some luck playing around with the custom fonts to get the fonts to invert the color in text panes based on the selected theme.但是我在使用自定义字体时遇到了一些运气,以使字体根据所选主题反转文本窗格中的颜色。

Try disabling the 'Use custom font' option in Preferences -> Appearance section and then restart the IDE.尝试禁用首选项 -> 外观部分中的“使用自定义字体”选项,然后重新启动 IDE。 I tried this and once I restarted the IDE the font color inverted properly based on the selected theme.我试过了,一旦我重新启动 IDE,字体颜色就会根据所选主题正确反转。 I was then able to re-select the custom font that I was using and restart the IDE again and it maintained the inverted font color.然后我能够重新选择我正在使用的自定义字体并再次重新启动 IDE,它保持了倒置的字体颜色。 I am using Intellij and the Darcula theme.我正在使用 Intellij 和 Darcula 主题。 Hopefully this works with Material themes as well.希望这也适用于 Material 主题。 在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM