Creates a keybind component with content, and optional color.

@param keybind the keybind
@param color the color
@return the keybind component
968773
public static KeybindComponent of(final @NonNull String keybind, final @Nullable TextColor color) {
    return of(keybind, color, Collections.emptySet());
  }
27968
def setKeyColor( self, key, color ):
        
        self._keyColors[nativestring(key)] = QColor(color)
903116
public VisualizerBuilder setColor(ColorableItem key, Color color) {
		settings.colorMap.put(key, color);
		return this;
	}
1011188
public static int color(ColorHolder colorHolder, Context ctx) {
        if (colorHolder == null) {
            return 0;
        } else {
            return colorHolder.color(ctx);
        }
    }
796199
public static ColorItem create(final ColorParams colorParams) {
        return ColorItemImpl.create().uid(colorIdGenerator.incrementAndGet()).set(colorParams);
    }
389918
public void setMediumTickMarkColor(final Color COLOR) {
        if (null == mediumTickMarkColor) {
            _mediumTickMarkColor = COLOR;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            mediumTickMarkColor.set(COLOR);
        }
    }
1169683
public void setStrokeColor(final IColor color)
    {
        m_jso.setStrokeColor((null != color) ? color.getColorString() : null);
    }
925110
public static String getPreviewButtonColorScript(final String color) {
        return new StringBuilder().append(PREVIEW_BUTTON_COLOR_REMOVE_SCRIPT).append(PREVIEW_BUTTON_COLOR_CREATE_SCRIPT)
                .append("var tagColorPreviewStyle = \".v-app .tag-color-preview{ height: 15px !important; padding: 0 10px !important; border: 0px !important; margin-left:12px !important;  margin-top: 4px !important; border-width: 0 !important; background: ")
                .append(color)
                .append(" } .v-app .tag-color-preview:after{ border-color: none !important; box-shadow:none !important;} \"; ")
                .append(PREVIEW_BUTTON_COLOR_SET_STYLE_SCRIPT).toString();
    }
652910
public @NonNull KeybindComponent keybind(final @NonNull String keybind) {
    return new KeybindComponent(this.children, this.color, this.obfuscated, this.bold, this.strikethrough, this.underlined, this.italic, this.clickEvent, this.hoverEvent, this.insertion, requireNonNull(keybind, "keybind"));
  }
1077355
public static String addColor(String orgString, String replaceString, int color) {
        return orgString.replace(replaceString, "<font color=\"" + colorToHexString(color) + "\">" + replaceString + "</font>");
    }
877731
public void setPrimaryButtonColor(String color) throws HelloSignException {
        if (white_labeling_options == null) {
            white_labeling_options = new WhiteLabelingOptions();
        }
        white_labeling_options.setPrimaryButtonColor(color);
    }
753446
public static void createDebugBorder(JComponent c, Color color) {
        if (color == null) {
            color = Color.BLACK;
        }
        c.setBorder(BorderFactory.createLineBorder(color));
    }
322659
public void setColor(final Color COLOR) {
        if (null == color) {
            _color = COLOR;
            fireSectionEvent(UPDATE_EVENT);
        } else {
            color.set(COLOR);
        }
    }
196699
public void setLedColor(final Color COLOR) {
        if (null == ledColor) {
            _ledColor = null == COLOR ? Color.RED : COLOR;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            ledColor.set(COLOR);
        }
    }
70429
public static String fill(int color) {
    final String colorCode = Integer.toHexString(color & 0xFFFFFF); // Strip alpha
    return FILTER_FILL + "(" + colorCode + ")";
  }
352825
private String colorKeyword(String keyword) {
        if(colorize) {
            return ANSI.color(keyword, ANSI.BLUE);
        } else {
            return keyword;
        }
    }
530970
public void setMajorTickMarkColor(final Color COLOR) {
        if (null == majorTickMarkColor) {
            _majorTickMarkColor = COLOR;
            fireUpdateEvent(REDRAW_EVENT);
        } else {
            majorTickMarkColor.set(COLOR);
        }
    }