/** * Gets the background color of this component. * * @return this component's background color; if this component does not have a background color, the background * color of its parent is returned */ @Override public Color getBackground() { return UIDefaultsLookup.getColor("JideTabbedPane.background"); } }
public Object createValue(UIDefaults table) { return brighter(UIDefaultsLookup.getColor("JideButton.focusedBackground"), LIGHTER_FACTOR); } };
public Object createValue(UIDefaults table) { return UIDefaultsLookup.getColor("JideButton.selectedBackground"); } };
public Object createValue(UIDefaults table) { return UIDefaultsLookup.getColor("JideButton.focusedBackground"); } };
/** * Gets the foreground color used inn the search popup. * * @return the foreground. By default it will use the foreground of tooltip. */ public Color getForeground() { if (_foreground == null) { return UIDefaultsLookup.getColor("ToolTip.foreground"); } else { return _foreground; } }
@Override protected void installDefaults(Gripper s) { _shadowColor = UIDefaultsLookup.getColor("controlShadow"); _darkShadowColor = UIDefaultsLookup.getColor("controlDkShadow"); _highlight = UIDefaultsLookup.getColor("controlHighlight"); _lightHighlightColor = UIDefaultsLookup.getColor("controlLtHighlight"); super.installDefaults(s); }
public void paintFloatingCommandBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) { g.setColor(UIDefaultsLookup.getColor("CommandBar.background")); g.fillRect(rect.x, rect.y, rect.width, rect.height); }
public void paintCollapsiblePaneTitlePaneBackgroundPlainEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state) { g.setColor(UIDefaultsLookup.getColor("CollapsiblePane.emphasizedBackground")); g.drawLine(rect.x, rect.y + rect.height - 1, rect.x + rect.width, rect.y + rect.height - 1); }
public void paintMenuShadow(JComponent c, Graphics g, Rectangle rect, int orientation, int state) { Color oldColor = g.getColor(); g.setColor(UIDefaultsLookup.getColor("MenuItem.shadowColor")); g.fillRect(rect.x, rect.y, rect.width, rect.height); g.setColor(oldColor); }
@Override protected void installDefaults() { _painter = (ThemePainter) UIDefaultsLookup.get("Theme.painter"); _shadowColor = UIDefaultsLookup.getColor("controlShadow"); _darkShadowColor = UIDefaultsLookup.getColor("controlDkShadow"); _highlight = UIDefaultsLookup.getColor("controlHighlight"); _lightHighlightColor = UIDefaultsLookup.getColor("controlLtHighlight"); menuItem.setRolloverEnabled(true); super.installDefaults(); }
public static Color getTextColor(Color backgroundColor) { float[] oHSB = new float[3]; Color.RGBtoHSB(backgroundColor.getRed(), backgroundColor.getGreen(), backgroundColor.getBlue(), oHSB); return (oHSB[2] > 0.53) ? UIDefaultsLookup.getColor("controlText") : Color.WHITE; }
public void paintCommandBarBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) { g.setColor(UIDefaultsLookup.getColor("CommandBar.background")); g.fillRoundRect(rect.x, rect.y, rect.width, rect.height, 2, 2); }
@Override public void paintHeaderBoxBackground(JComponent c, Graphics g, Rectangle rect, int orientation, int state) { boolean paintBorder = !(c instanceof AbstractButton) || ((AbstractButton) c).isBorderPainted(); paintButtonBackground(c, g, rect, orientation, state, paintBorder); if (!paintBorder) { Color old = g.getColor(); g.setColor(UIDefaultsLookup.getColor("Table.gridColor")); g.drawLine(rect.x + rect.width - 1, rect.y, rect.x + rect.width - 1, rect.y + rect.height - 1); g.drawLine(rect.x, rect.y + rect.height - 1, rect.x + rect.width - 1, rect.y + rect.height - 1); g.setColor(old); } }
@Override public void paint(Graphics g, JComponent c) { if (!(c.getParent() instanceof JPopupMenu)) { super.paint(g, c); } Dimension s = c.getSize(); Color foreground = UIDefaultsLookup.getColor("PopupMenuSeparator.foreground"); Color background = UIDefaultsLookup.getColor("PopupMenuSeparator.background"); g.setColor(background); g.drawLine(1, 0, s.width - 2, 0); g.setColor(foreground); g.drawLine(1, 1, s.width - 2, 1); }
public void paintCollapsiblePaneTitlePaneBackgroundEmphasized(JComponent c, Graphics g, Rectangle rect, int orientation, int state) { if (!(c.getBackground() instanceof UIResource)) { g.setColor(c.getBackground()); } else { g.setColor(UIDefaultsLookup.getColor("CollapsiblePane.emphasizedBackground")); } g.fillRect(rect.x, rect.y, rect.width, rect.height); }
/** * Constructor with tab height. * * @param tabHeight the tab height */ public Contour(int tabHeight) { _thickness = UIDefaultsLookup.getInt("Contour.thickness") == 0 ? 4 : UIDefaultsLookup.getInt("Contour.thickness"); _lineColor = UIDefaultsLookup.getColor("Contour.color") == null ? new Color(136, 136, 136) : UIDefaultsLookup.getColor("Contour.color"); setTabHeight(tabHeight); if (getOutlineMode() != PARTIAL_OUTLINE_MODE) { initOutline(); } }
@Override protected void installDefaults() { super.installDefaults(); LookAndFeel.installBorder(progressBar, "MeterProgressBar.border"); LookAndFeel.installColors(progressBar, "MeterProgressBar.background", "MeterProgressBar.foreground"); _cellForeground = UIDefaultsLookup.getColor("MeterProgressBar.cellForeground"); _cellBackground = UIDefaultsLookup.getColor("MeterProgressBar.cellBackground"); _cellLength = UIDefaultsLookup.getInt("MeterProgressBar.cellLength"); _cellSpacing = UIDefaultsLookup.getInt("MeterProgressBar.cellSpacing"); }
private void clearStatus() { _statusLabel.setIcon(null); _textField.setBackground(UIDefaultsLookup.getColor("TextField.background")); _comboBox.getEditor().getEditorComponent().setBackground(UIDefaultsLookup.getColor("TextField.background")); if (isShowMatchCount() && (_textField.getText().length() > 0 || (_comboBox.isVisible() && _comboBox.getEditor().getEditorComponent() instanceof JTextField && ((JTextField) _comboBox.getEditor().getEditorComponent()).getText().length() > 0))) { _statusLabel.setText(getSearchable().getMatchCount() + " " + getResourceString("SearchableBar.matches")); } else { _statusLabel.setText(""); } hideMessage(); }
protected void installDefaults() { JComponent contentPane = (JComponent) _popup.getContentPane(); if (contentPane != null) { Color bg = contentPane.getBackground(); if (bg instanceof UIResource) contentPane.setBackground(null); } _popup.setLayout(_dockableFrameLayout = createLayoutManager()); _popup.setBackground(UIDefaultsLookup.getColor("JideButton.background")); LookAndFeel.installBorder(_popup, "Popup.border"); }