Skip to content

Commit

Permalink
Fixed source hover background color in C/C++ editor. Fixes #26.
Browse files Browse the repository at this point in the history
  • Loading branch information
rogerdudler committed Apr 28, 2011
1 parent 492231c commit 9674341
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Expand Up @@ -2,6 +2,7 @@
======
* Added support for the PDE editor.
* Added support for the ColdFusion editor (CFEclipse).
* Fixed source hover background color in C/C++ editor.

0.10.2 (2011-04-13)
===================
Expand Down
3 changes: 2 additions & 1 deletion com.github.eclipsecolortheme/mappings/org.eclipse.cdt.ui.xml
Expand Up @@ -18,7 +18,8 @@
<mapping pluginKey="pp_default" themeKey="foreground" />
<mapping pluginKey="org.eclipse.cdt.internal.ui.text.doctools.multi" themeKey="javadoc" />
<mapping pluginKey="org.eclipse.cdt.internal.ui.text.doctools.single" themeKey="javadoc" />
<mapping pluginKey="org.eclipse.cdt.internal.ui.text.doctools.recognizedTag" themeKey="javadocTag" />
<mapping pluginKey="org.eclipse.cdt.internal.ui.text.doctools.recognizedTag" themeKey="javadocTag" />
<mapping pluginKey="sourceHoverBackgroundColor" themeKey="sourceHoverBackground" />
</mappings>
<semanticHighlightingMappings>
<semanticHighlightingMapping pluginKey="semanticHighlighting.class" themeKey="class" />
Expand Down
2 changes: 1 addition & 1 deletion com.github.eclipsecolortheme/plugin.xml
Expand Up @@ -28,7 +28,7 @@
xml="mappings/org.eclipse.ant.ui.xml">
</mapper>
<mapper
class="com.github.eclipsecolortheme.mapper.GenericMapper"
class="com.github.eclipsecolortheme.mapper.CEditorMapper"
name="C"
pluginId="org.eclipse.cdt.ui"
xml="mappings/org.eclipse.cdt.ui.xml">
Expand Down
@@ -0,0 +1,15 @@
package com.github.eclipsecolortheme.mapper;

import java.util.Map;

import com.github.eclipsecolortheme.ColorThemeSetting;

public class CEditorMapper extends GenericMapper {

@Override
public void map(Map<String, ColorThemeSetting> theme) {
preferences.putBoolean("sourceHoverBackgroundColor.SystemDefault", false);
super.map(theme);
}

}

0 comments on commit 9674341

Please sign in to comment.