Skip to content

Instantly share code, notes, and snippets.

@agentgt
Last active June 11, 2024 17:46
Show Gist options
  • Save agentgt/fcaf75eb8acf92e08926 to your computer and use it in GitHub Desktop.
Save agentgt/fcaf75eb8acf92e08926 to your computer and use it in GitHub Desktop.
One Dark Atom Theme for Eclipse for the Eclipse Color Theme plugin
<?xml version="1.0" encoding="utf-8"?>
<colorTheme id="9999" name="One Dark Like" modified="2015-09-01 19:55:49" author="Adam Gent" website="http://snaphop.com">
<searchResultIndication color="#E5C07B" />
<filteredSearchResultIndication color="#E5C07B" />
<occurrenceIndication color="#4B4E55" />
<writeOccurrenceIndication color="#4B4E55" />
<findScope color="#4B4E55" />
<deletionIndication color="#DF5F5F" />
<sourceHoverBackground color="#4B4E55" />
<singleLineComment color="#969896" italic="false" />
<multiLineComment color="#969896" italic="false" />
<commentTaskTag color="#969896" />
<javadoc color="#969896" italic="false" />
<javadocLink color="#969896" />
<javadocTag color="#CED1CF" />
<javadocKeyword color="#CED1CF" />
<!-- old F0C674 ==> E5C07B -->
<class color="#E5C07B" />
<!-- B294BB -->
<interface color="#E5C07B" />
<method color="#ABB2BF" />
<methodDeclaration color="#61AFEF" />
<bracket color="#ABB2BF" />
<number color="#D19A66" />
<!-- 98C379 -->
<string color="#98C379" />
<operator color="#CED1CF" />
<!-- old B294BB-->
<keyword color="#C678DD" />
<!-- annotation old 4B4E55 ==> D19A66 -->
<annotation color="#D19A66" />
<staticMethod color="#ABB2BF" />
<!-- Red old CC6666 ==> E06C75 -->
<localVariable color="#E06C75" />
<localVariableDeclaration color="#E06C75" />
<!-- Orange DE935F ==> D19A66 -->
<field color="#D19A66" />
<staticField color="#D19A66" />
<staticFinalField color="#D19A66" />
<deprecatedMember color="#4B4E55" underline="false" strikethrough="false" />
<!-- old enum color same as field D19A66 => E5C07B -->
<enum color="#E5C07B" />
<inheritedMethod color="#ABB2BF" />
<abstractMethod color="#ABB2BF" />
<parameterVariable color="#E06C75" />
<typeArgument color="#D19A66" />
<typeParameter color="#D19A66" />
<constant color="#D19A66" bold="false" underline="false" strikethrough="false" />
<!-- atom hue 3 purple: 9344ab, actual c678dd -->
<!-- atom hue 4 green: 7b9e62, actual 98C379 -->
<!-- atom fg: 9ca4b5, actual abb2bf -->
<!-- atom bg: 282a2e, actual 282C35 -->
<!-- atom line number: 393c42, actual 4b5363 -->
<!-- atom selection: actual 3E4451 -->
<!-- atom cursor: 0038a8 -->
<!-- 282C35 222,25,21 40,44,53 -->
<background color="#282C35" />
<!-- atom line hilight actual 2C323B -->
<currentLine color="#2C323B" />
<foreground color="#ABB2BF" />
<!-- old line: 828791 -->
<lineNumber color="#4B5363" />
<!-- atom selection wrong color: 3e4147 -->
<!-- old color 373B41 -->
<selectionBackground color="#3E4451" />
<!-- not sure what this is -->
<selectionForeground color="#C5C8C6" />
</colorTheme>
@agentgt
Copy link
Author

agentgt commented Sep 3, 2015

This theme is combination of Tomorrow Night and One Dark but mainly focused on being One Dark like. One Dark syntax is the default syntax theme in Atom.

I had to use Apple's Digital Color Meter to get the colors correct since Atom apparently does not use native colors and I guess Eclipse does... I am not a color expert so I may be wrong on this.

Some notes:

This was tested on Eclipse Mars on Mac OSX. The colors may vary on other platforms (I hope not but they might). It is not an exact match to Atom 1.0.7 but it is close. The reason is that Eclipse has far more knowledge of syntax than Atom does and the color themes plugin tries to simplify by having multiple languages work with the the same XML description. An .epf is probably the only way to fix that but that is a lot more work. Also I could not figure out how to change the cursor color or the font line height.

I tried to create an account on http://eclipsecolorthemes.org/ but I can't seem to login into edit my theme (the registration is broken) (http://eclipsecolorthemes.org/?view=theme&id=39432). Hopefully some google indexing and people find this instead of the ecipse color themes site.

@jstocke
Copy link

jstocke commented Jun 23, 2016

I'd really like to use this theme because Atom's color themes tend to be easier to read without going over-the-top with their colors. I've just started using eclipse though and I'm not sure how to download this theme. I already downloaded the .xml, then went to File > Import... then General > Preferences. This didn't work. How to I install this theme on Eclipse? I'm using Eclipse Neon on Mac OSX. Thank you!

@aquafemi
Copy link

aquafemi commented Jul 5, 2016

jstocke, you should also install the 'Eclipse Color Theme' plugin here. Drag the install button into your eclipse workspace and it should download it. Once it's been downloaded and eclipse has been restarted, go to Window->Preferences->General->Appearance->Color Theme and then import a theme. Import the .xml file, and then choose your color theme to be One Dark Like. After you restart eclipse it should work.

@jstocke
Copy link

jstocke commented Jul 8, 2016

Thanks a ton!

@puffybsd
Copy link

Thanks for posting this, very useful.

@ravijoshi2
Copy link

Thanks a lot.

@fuba82
Copy link

fuba82 commented Sep 12, 2017

Awesome!
Thanks :)

@FoxNeo
Copy link

FoxNeo commented Jul 30, 2018

Thank you, I was looking for this for a while. I also use an Atom thema for visual studio code.

@M-AliFida
Copy link

Thanks a lot!

@DavdPortillo
Copy link

Amazing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment