public static Color foreground() { return new JBColor(new NotNullProducer<Color>() { @NotNull @Override public Color produce() { return UIUtil.getLabelForeground(); } }); }
public static Color background() { return new JBColor(new NotNullProducer<Color>() { @NotNull @Override public Color produce() { return UIUtil.getListBackground(); } }); }
public static Color border() { return new JBColor(new NotNullProducer<Color>() { @NotNull @Override public Color produce() { //noinspection deprecation return UIUtil.getBorderColor(); } }); } }
private static Color getBorderColor() { return new JBColor(Gray._150, Gray._100); }
public static Color getListUnfocusedSelectionBackground() { return new JBColor(UNFOCUSED_SELECTION_COLOR, new Color(13, 41, 62)); }
@NotNull @Override public Color getRootsGroupColor() { return new JBColor(new Color(76, 94, 133), new Color(76, 94, 133)); }
public static Color getLabelFontColor(FontColor fontColor) { Color defColor = getLabelForeground(); if (fontColor == FontColor.BRIGHTER) { return new JBColor(new Color(Math.min(defColor.getRed() + 50, 255), Math.min(defColor.getGreen() + 50, 255), Math.min( defColor.getBlue() + 50, 255)), defColor.darker()); } return defColor; }
private static Color getTopBlockColor() { return new JBColor(Color.white, Gray._0.withAlpha(0)); }
private JBColor jbColor(final Color regular, final Color dark) { return new JBColor(() -> isDark() ? dark : regular); }
private static Color getBoundsColor() { return new JBColor(Color.gray, Gray._0.withAlpha(80)); }
private static Color getRightBlockColor() { return new JBColor(Color.lightGray, Gray._0.withAlpha(0)); }
public static JBColor getTrackBackgroundDefault() { return new JBColor(LightColors.SLIGHTLY_GRAY, UIUtil.getListBackground()); }
public static JBColor getTrackBorderColorDefault() { return new JBColor(com.intellij.ui.Gray._230, UIUtil.getListBackground()); }
public static Color getTreeUnfocusedSelectionBackground() { Color background = getTreeTextBackground(); return ColorUtil.isDark(background) ? new JBColor(Gray._30, new Color(13, 41, 62)) : UNFOCUSED_SELECTION_COLOR; }
static void setBackground(Component component) { component.setBackground(new JBColor(new ScrollColorProducer(component, 0xF5F5F5, 0x3C3F41, true))); }
@Nullable public static JBColor lightenColor(@Nullable Color color) { if (color == null) { return null; } return new JBColor( new Color( lighten(color.getRed(), true), lighten(color.getGreen(), true), lighten(color.getBlue(), true) ), new Color( lighten(color.getRed(), false), lighten(color.getGreen(), false), lighten(color.getBlue(), false) ) ); }
static void setForeground(Component component) { component.setForeground(new JBColor(new ScrollColorProducer(component, 0xE6E6E6, 0x3C3F41, false))); }