📜 ⬆️ ⬇️

Eclipse Dark Color Palette with Compiz Color Filter

This is the color scheme I got in the end.

Personally, I am to the white letters (well, green, of course) on a black background. Especially in the dark it is easier to read and not to hit the eyes.
Unfortunately, this solution is acceptable only for those who use Gnu / Linux or another OS that the Compiz window manager ships to.

On StackOverflow, someone skrat suggested using the Negative plugin for Compiz.

The negative also found a minus. It turned out very bright letters on a black background. Fortunately, Compiz has another plug-in, Color Filter , which allows you to turn colors in assembly-like language (it is written that it is called the OpenGL fragment program ), after playing a little with examples, I riveted a filter that makes a negative image and reduces contrast.


1) /usr/share/compiz/filters/
2) negative-low-contrast
4) Compiz (ccsm -> System -> Preferences -> CompizConfig ..)
5) ColorFilter
7) ( )

Filter code

TEMP temp, neg;

# Dunno what's this... but every other filter starts with this :) ;
TEX temp, fragment.texcoord[0], texture[0], RECT;

# Applying negative filter ;
RCP neg.a, temp.a;
MAD temp.rgb, -neg.a, temp, 1.0;
MUL temp.rgb, temp.a, temp;
MUL temp, fragment.color, temp;

# Lowering contrast and shifting brightness ;
MUL temp.rgb, temp, 0.8;
ADD temp.rgb, temp, 0.25;

MOV result.color, temp;


* We get a good solution (unfortunately only with Compiz).
* Universally suitable for any editors and windows as a whole (although the graphics in negative looks bad).
* Turns on and off at will!
* In my list of useful Compiz plugins (Expo, Scale, Grid) one more was added =)


For Eclipse, there is ... a dark color scheme, but with some sort of confusion. Basically there are volunteers who go through all the syntax highlighting settings and set the desired colors, and then export their settings (File-> Export-> General-> Preferences).

I tried several such settings. Almost always something started to fail. Most often there were color schemes for Java, but not for PDT, Aptana, etc. I tried to set different ones, but some features of the eclipse itself continued to be buggy (for example, the file comparison window - the background remained white).


If you want to play with filters, remember that in the comments in the code begin with "#" and (!) Must end with ";"

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

All Articles