|
|
|
@ -117,6 +117,7 @@ public abstract class DarkTextUI extends BasicTextUI implements OpacityBufferedU
|
|
|
|
|
updateMargins(); |
|
|
|
|
installBorder(); |
|
|
|
|
installPopupMenu(); |
|
|
|
|
updateBackground(editor); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -203,6 +204,10 @@ public abstract class DarkTextUI extends BasicTextUI implements OpacityBufferedU
|
|
|
|
|
visualPaddingListener = null; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected void updateBackground(final JTextComponent c) { |
|
|
|
|
PropertyUtil.installBackground(c, getBackground(c)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected Color getBackground(final JTextComponent c) { |
|
|
|
|
if (!c.isEnabled()) { |
|
|
|
|
return disabledColor; |
|
|
|
|