Option to override getBackground in DarculaButtonUI

Might be useful for creating transparent buttons, for example

GitOrigin-RevId: f89cc60b8c11e5eb5eaf8eb69f93b4845481d4d6
This commit is contained in:
Sasha Blashenkov
2023-05-22 03:03:35 +00:00
committed by intellij-monorepo-bot
parent 0c79987492
commit a5aa4ccb0b
@@ -170,7 +170,7 @@ public class DarculaButtonUI extends BasicButtonUI {
}
}
private Paint getBackground(JComponent c, Rectangle r) {
protected Paint getBackground(JComponent c, Rectangle r) {
Color backgroundColor = (Color)c.getClientProperty("JButton.backgroundColor");
return backgroundColor != null ? backgroundColor :