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