views:

193

answers:

1

I'm thinking of making an easy global dark background switch for Eclipse.

For example intercept all the colors that are about to be rendered and replace them: (R,G,B) -> (255-R, 255-G, 255-B).

Can you suggest Eclipse source spots where it can be done?

The current problems are

  • Every language-color pair must be manually modified
  • There are vertical bars that are always white

The related questions:

+1  A: 

There is none. I once explored making a dark color scheme for an Eclipse-based IDE we were creating for our customers. The vertical bars do stay white, and some other colors could not be changed too.

Now, I must say there is always an obscure way to do something. If you really want that, and have required Java programming skills, you could write an Equinox adaptor hook that would run byte-code instrumentation on SWT to intercept all color-related calls and proxy them through your color mapper. (Ask on SO if you need help with that.)

Andrey Tarantsov