1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Bug 411970: Default colors in Makefile Editor consistent with C/C++ editor

This commit is contained in:
Andrew Gvozdev 2013-06-30 22:47:29 -04:00
parent b9d4a197f4
commit c93d4583c7
3 changed files with 11 additions and 7 deletions

View file

@ -449,6 +449,10 @@ public class MakefileEditorPreferencePage extends AbstractMakefileEditorPreferen
PreferenceConverter.setDefault(prefs, ColorManager.MAKE_MACRO_DEF_COLOR, ColorManager.MAKE_MACRO_DEF_RGB);
PreferenceConverter.setDefault(prefs, ColorManager.MAKE_MACRO_REF_COLOR, ColorManager.MAKE_MACRO_REF_RGB);
PreferenceConverter.setDefault(prefs, ColorManager.MAKE_MATCHING_BRACKETS_COLOR, ColorManager.MAKE_MATCHING_BRACKETS_RGB);
prefs.setDefault(ColorManager.MAKE_KEYWORD_COLOR + MakefileEditorPreferenceConstants.EDITOR_BOLD_SUFFIX, true);
prefs.setDefault(ColorManager.MAKE_FUNCTION_COLOR + MakefileEditorPreferenceConstants.EDITOR_BOLD_SUFFIX, true);
prefs.setDefault(ColorManager.MAKE_MACRO_DEF_COLOR + MakefileEditorPreferenceConstants.EDITOR_BOLD_SUFFIX, true);
}
}

View file

@ -54,7 +54,7 @@ MakefileEditorPreferencePage.makefile_editor_function=Function
MakefileEditorPreferencePage.makefile_editor_keyword=Keyword
MakefileEditorPreferencePage.makefile_editor_target=Target
MakefileEditorPreferencePage.makefile_editor_matching_bracket=Matching brackets highlight
MakefileEditorPreferencePage.makefile_editor_default=Default
MakefileEditorPreferencePage.makefile_editor_default=Others
MakefileSettingsPreferencePage.style=Style of Makefile
MakefileSettingsPreferencePage.path.label=Makefile include directories

View file

@ -28,13 +28,13 @@ public class ColorManager implements ISharedTextColors {
public static final String MAKE_DEFAULT_COLOR = "org.eclipse.cdt.make.ui.editor.default"; //$NON-NLS-1$
public static final String MAKE_MATCHING_BRACKETS_COLOR = "org.eclipse.cdt.make.ui.editor.matching.brackets.color"; //$NON-NLS-1$
public static final RGB MAKE_COMMENT_RGB = new RGB(128, 0, 0);
public static final RGB MAKE_KEYWORD_RGB = new RGB(128, 255, 0);
public static final RGB MAKE_FUNCTION_RGB = new RGB(128, 0, 128);
public static final RGB MAKE_MACRO_DEF_RGB = new RGB(0, 0, 128);
public static final RGB MAKE_MACRO_REF_RGB = new RGB(0, 128, 0);
public static final RGB MAKE_COMMENT_RGB = new RGB(63, 127, 95);
public static final RGB MAKE_KEYWORD_RGB = new RGB(127, 0, 85);
public static final RGB MAKE_FUNCTION_RGB = new RGB(208, 15, 63);
public static final RGB MAKE_MACRO_DEF_RGB = new RGB(78,118,214);
public static final RGB MAKE_MACRO_REF_RGB = new RGB(0, 0, 192);
public static final RGB MAKE_DEFAULT_RGB = new RGB(0, 0, 0);
public static final RGB MAKE_MATCHING_BRACKETS_RGB = new RGB(170,170,170);
public static final RGB MAKE_MATCHING_BRACKETS_RGB = new RGB(170, 170, 170);
private static ColorManager fgColorManager;