📜 ⬆️ ⬇️

Dark color scheme for IntelliJ IDEA: continuation and news

This post is a continuation of this . Then I developed a plugin that paints such interface elements as trees and lists in the colors of the selected scheme. Almost 2 months have passed since then and something has changed.

1. Darcula


The main and very good news: in JetBrains work (in particular stalk ) on a standard dark scheme. It will connect via the look and feel and will be called Darcula. It is already included in the source code for the Comunity Edition and will fall into the new EAPs.


2. Patch IDE


During the development of the Color IDE , a special type of bugs was discovered - hardcoded values ​​in the IDE code that do not manifest themselves when using a white theme, but are noticeable when using a dark one. For example, the tree in the settings began to look like this:
image

The only way to fix this is to replace the implementation of classes with a patched one that does not contain hard-coded values. I could not solve this problem with plugins without interfering with IDE files. Although I tried very hard, for example, I tried to replace the classes through the class loader in runtime.
')
Therefore, the solution was implemented as an IDE patcher, which, for convenience, is designed as a Patch IDE plugin. The first time this patcher is loaded, it changes files to fixed ones, and then reboots the IDE with already new files. For convenience, the ability to roll back to the original version of the file has been implemented, it can be done from the menu in the settings.


At the moment, the plugin solves the following three problems:
  1. The mentioned problem with the settings tree

  2. Black text color in the nodes of some trees

  3. In new builds (after 118.308), the background color for test files is very light, and the text of dark themes doesn’t look contrast
    • To fix
    • After fixation
    • The bug in JetBrains tracker is not yet registered


All the patches I add to the JetBrains tracker and two of them have already been reviewed and are included in the source code.

Despite the appearance of Darcula, I plan to further develop the Color IDE / Patch IDE. I tested his work in Intellij IDEA version above 11.1, PhpStorm 4.0.3, PyCharm 2.5.2, RubyMine 4.5 on Windows.

Links


Source: https://habr.com/ru/post/148521/


All Articles