Browse Source

Respect custom editor background of spinner if set.

pull/222/head
weisj 4 years ago
parent
commit
04a9f17135
  1. 3
      core/src/main/java/com/github/weisj/darklaf/ui/spinner/DarkSpinnerUI.java

3
core/src/main/java/com/github/weisj/darklaf/ui/spinner/DarkSpinnerUI.java

@ -212,7 +212,8 @@ public class DarkSpinnerUI extends BasicSpinnerUI implements SpinnerConstants {
boolean isCellEditor = SpinnerConstants.isTreeOrTableCellEditor(c); boolean isCellEditor = SpinnerConstants.isTreeOrTableCellEditor(c);
if (editorComponent != null) { if (editorComponent != null) {
editorComponent.setBackground(bg); PropertyUtil.installBackground(editorComponent, bg);
bg = editorComponent.getBackground();
} }
DividedWidgetPainter.paintBackground((Graphics2D) g, c, arc, arrowBounds, bg, spinBg, isCellEditor); DividedWidgetPainter.paintBackground((Graphics2D) g, c, arc, arrowBounds, bg, spinBg, isCellEditor);

Loading…
Cancel
Save