简体   繁体   English

更改智能窗格的背景颜色

[英]Changing the background color of an intellij pane

I've changed the color scheme in intellij so that the background of the Java editor pane is dark and the text is light.我更改了 intellij 中的配色方案,使 Java 编辑器窗格的背景变暗,文本变亮。 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.这显然是一个问题,因为除非我手动突出显示文本以使背景具有不同的颜色,否则我无法读取白色背景上的白色文本。

Is there a way to change the background color of other panes other than the editor pane in IntelliJ?有没有办法更改 IntelliJ 中编辑器窗格以外的其他窗格的背景颜色?

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. 完成。

** Edit ** As of Intelli-J Idea 12, Dark is the default! ** 编辑 **从Intelli-J Idea 12开始,Dark是默认值! See my points below for versions 10/11 有关版本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. 现在有一种方法 - 将'patch-ide'插件与'color-ide'插件结合使用,您将获得所有其他窗格和应用程序首选项的背景颜色。 If you just want to style your project tree also, use 'color-tree' 如果您只想为项目树设置样式,请使用'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

How about this way. 这样怎么样

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

Choose other color 选择其他颜色

then 然后

Click the " Apply " button. 单击“ Apply ”按钮。

On Mac Ox and Idea 14 after changing back to Default theme you should also modify ~/Library/Preferences/IntelliJIdea14/options/laf.xml 在Mac Ox和Idea 14中更改回默认主题后,您还应该修改~/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" />

Here's the latest 2016 that worked for me. 这是最新的2016年,对我有用。 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, ie white panes. 选择快速切换方案 - >外观 - >默认选项 - 为我解决,即白色窗格。

https://www.jetbrains.com/help/idea/2016.1/switching-between-schemes.html https://www.jetbrains.com/help/idea/2016.1/switching-between-schemes.html

I found a solution: 我找到了解决方案:

Go to view -> Quick switch Scheme.... and change option 5. Look and feel to Dracula 转到查看 - >快速切换方案....并更改选项5.外观和感觉德古拉

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. 问题可能是你在从白色主题改为吸血鬼之前,先说“将Dracula主题设为默认主题”。

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,这样我就可以使用魔术键组合来反转所有颜色。屏幕!

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并查找“设置背景图像”将壁纸更改为其他壁纸。

I like to play around with different themes and installed a bunch of them.我喜欢玩不同的主题并安装了一堆。 After a while when I switched back to IntelliJ Light, this happened -一段时间后,当我切换回 IntelliJ Light 时,发生了这种情况-

在此处输入图片说明

The opened files bar in editor couldn't retrieve its default colors.编辑器中打开的文件栏无法检索其默认颜色。 I tried -我试过 -

  1. Switching between themes (View -> Quick switch scheme -> Theme -> Selecting another one在主题之间切换(查看 -> 快速切换方案 -> 主题 -> 选择另一个

  2. Restart the IDE重新启动IDE

  3. Finally I did this - Files -> Settings -> Plugins -> And disabled all installed themes and restart最后我这样做了 -文件 -> 设置 -> 插件 -> 并禁用所有已安装的主题并重新启动

And voila!瞧!

在此处输入图片说明

Hope this helps someone in a similar situation :)希望这可以帮助处于类似情况的人:)

Settings -> Editor -> Colors & Fonts 设置 - >编辑器 - >颜色和字体

Set "Scheme" to "Default". 将“Scheme”设置为“Default”。 Helps instantly, without restart 立即帮助,无需重启

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

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