Java 更改智能窗格的背景颜色
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3473460/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Changing the background color of an intellij pane
提问by digiarnie
I've changed the color scheme in intellij so that the background of the Java editor pane is dark and the text is light. I'm not sure if this is directly related, however, in other windows such as the 'run' window, the background stays white but any system messages are displayed as white text. This is obviously a problem as I can't read white text on a white background unless I manually highlight the text to have the background a different color.
我更改了 intellij 中的配色方案,使 Java 编辑器窗格的背景变暗,文本变亮。我不确定这是否直接相关,但是,在其他窗口(例如“运行”窗口)中,背景保持白色,但任何系统消息都显示为白色文本。这显然是一个问题,因为除非我手动突出显示文本以使背景具有不同的颜色,否则我无法读取白色背景上的白色文本。
Is there a way to change the background color of other panes other than the editor pane in IntelliJ?
有没有办法更改 IntelliJ 中编辑器窗格以外的其他窗格的背景颜色?
采纳答案by Peter
** Edit** As of Intelli-J Idea 12, Dark is the default! See my points below for versions 10/11
**编辑** 从 Intelli-J Idea 12 开始,Dark 是默认值!有关版本 10/11,请参阅下面我的观点
There is a way now - install the 'patch-ide' plugin in combination with the 'color-ide' plugin, and you will get your background colors across all the other panes and throughout the preferences of the application. If you just want to style your project tree also, use 'color-tree'
现在有一种方法 - 将 'patch-ide' 插件与 'color-ide' 插件结合安装,您将在所有其他窗格和整个应用程序首选项中获得背景颜色。如果您也只想设置项目树的样式,请使用“color-tree”
http://plugins.jetbrains.net/category/index?pr=webide&category_id=25
http://plugins.jetbrains.net/category/index?pr=webide&category_id=25
As a side note, here is an excellent dark color scheme, BlueForest
作为旁注,这里有一个很好的深色配色方案,BlueForest
http://www.decodified.com/misc/2011/06/15/blueforest-a-dark-color-scheme-for-intellij-idea.html
http://www.decodified.com/misc/2011/06/15/blueforest-a-dark-color-scheme-for-intellij-idea.html
回答by digiarnie
There does not seem to be a way. I'll either have to revert my color scheme back to the default, keep the white on white text in the 'run' pane or convince my work to get me a mac so i can use the magic key combination to invert all colors on the screen!
似乎没有办法。我要么必须将我的配色方案恢复为默认值,在“运行”窗格中保留白底白字,要么说服我的工作给我一台 mac,这样我就可以使用魔术组合键来反转屏幕上的所有颜色屏幕!
回答by Miklos Jakab
I believe if you restart IntelliJ, it will update the background of all panes (tool windows).
我相信如果您重新启动 IntelliJ,它将更新所有窗格(工具窗口)的背景。
If you are having trouble to revert back to light frames, there is a way to do that.
如果您在恢复到轻帧时遇到困难,有一种方法可以做到这一点。
Locate the your IntelliJ settings folder (on Windows, it is typically C:\Users\{username}\.IdeaIC12\
, on Mac, it is something like ~/Library/Preferences/IntelliJIdea13/options
. Of course you have to select the appropriate IntelliJ folder)).
找到您的 IntelliJ 设置文件夹(在 Windows 上,它通常是C:\Users\{username}\.IdeaIC12\
,在 Mac 上,它类似于~/Library/Preferences/IntelliJIdea13/options
。当然,您必须选择适当的 IntelliJ 文件夹))。
Go to the folder config\options\
.
转到文件夹config\options\
。
Edit the file options.xml
.
编辑文件options.xml
。
Delete these lines:
删除这些行:
<component name="LafManager">
<laf class-name="idea.dark.laf.classname" />
</component>
Done.
完毕。
回答by seyeon
How about this way.
这条路怎么样。
File->Settings->Editor->Color & Fonts->General->Default text
Choose other color
选择其他颜色
then
然后
Click the "Apply
" button.
单击“ Apply
”按钮。
回答by goalstudio
On Mac Ox and Idea 14 after changing back to Default theme you should also modify
~/Library/Preferences/IntelliJIdea14/options/laf.xml
and change<laf class-name="com.intellij.ide.ui.laf.darcula.DarculaLaf" />
to<laf class-name="com.apple.laf.AquaLookAndFeel" />
在 Mac Ox 和 Idea 14 上改回默认主题后,您还应该修改
~/Library/Preferences/IntelliJIdea14/options/laf.xml
并更改<laf class-name="com.intellij.ide.ui.laf.darcula.DarculaLaf" />
为<laf class-name="com.apple.laf.AquaLookAndFeel" />
回答by Illia
Settings -> Editor -> Colors & Fonts
设置 -> 编辑器 -> 颜色和字体
Set "Scheme" to "Default". Helps instantly, without restart
将“方案”设置为“默认”。立即帮助,无需重启
回答by H.Rabiee
Here's the latest 2016 that worked for me. I had changed the white background for editors but all the panes were still black. Selecting Quick Switch Scheme -> Look and feel -> default option - solved it for me, i.e. white panes.
这是对我有用的最新 2016 年。我已经改变了编辑器的白色背景,但所有的窗格仍然是黑色的。选择快速切换方案 -> 外观 -> 默认选项 - 为我解决了它,即白色窗格。
https://www.jetbrains.com/help/idea/2016.1/switching-between-schemes.html
https://www.jetbrains.com/help/idea/2016.1/switching-between-schemes.html
回答by Julien
I found a solution:
我找到了一个解决方案:
Go to view -> Quick switch Scheme.... and change option 5. Look and feel to Dracula
转到查看 -> 快速切换方案.... 并更改选项 5. 对德古拉的外观和感觉
回答by Karanveer Singh Sodhi
For all using intellij IDEA 15
对于所有使用 IntelliJ IDEA 15 的人
if the problem is inconsistent colors in different panes try this :
如果问题是不同窗格中的颜色不一致,请尝试以下操作:
View -> Quick Switch Schemes - Look and Feel -> Intellij (Note : not same as default)
视图 -> 快速切换方案 - 外观 -> Intellij(注意:与默认值不同)
Problem might be that you said yes to 'set Dracula theme to be the default' earlier when changing to dracula from white theme.
问题可能是您之前在从白色主题更改为德古拉主题时说是“将德古拉主题设置为默认主题”。
回答by Pablo Santiago Sánchez
I've managed to get everything with a black background + a nice skull wallpaper.
我设法获得了黑色背景 + 漂亮的骷髅壁纸的所有内容。
https://github.com/phackwer/DarkKnight_IntelliJ
https://github.com/phackwer/DarkKnight_IntelliJ
I usually disable Tool Buttons, Tool Bar and Status Bar on the View Menu and also run the project on Full Screen mode. Looks sensational!
我通常禁用视图菜单上的工具按钮、工具栏和状态栏,并在全屏模式下运行项目。看起来很感人!
You can change the wallpaper to a different one by pressing shift twice and looking for Set Background Image.
您可以通过按两次 shift 并查找设置背景图像来将墙纸更改为不同的墙纸。