Search in sources :

Example 6 with ColorKey

use of com.intellij.openapi.editor.colors.ColorKey in project intellij-community by JetBrains.

the class HTMLColorsPage method getColorDescriptors.

@Override
@NotNull
public ColorDescriptor[] getColorDescriptors() {
    // todo: make preview for it
    final ColorKey[] colorKeys = XmlTagTreeHighlightingColors.getColorKeys();
    final ColorDescriptor[] colorDescriptors = new ColorDescriptor[colorKeys.length];
    for (int i = 0; i < colorDescriptors.length; i++) {
        colorDescriptors[i] = new ColorDescriptor(OptionsBundle.message("options.html.attribute.descriptor.tag.tree", i + 1), colorKeys[i], ColorDescriptor.Kind.BACKGROUND);
    }
    return colorDescriptors;
}
Also used : ColorDescriptor(com.intellij.openapi.options.colors.ColorDescriptor) ColorKey(com.intellij.openapi.editor.colors.ColorKey) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

ColorKey (com.intellij.openapi.editor.colors.ColorKey)6 NotNull (org.jetbrains.annotations.NotNull)3 ColorDescriptor (com.intellij.openapi.options.colors.ColorDescriptor)2 ArrayList (java.util.ArrayList)2 EditorColorsScheme (com.intellij.openapi.editor.colors.EditorColorsScheme)1 JBColor (com.intellij.ui.JBColor)1