mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Option to override getBackground in DarculaButtonUI
Might be useful for creating transparent buttons, for example GitOrigin-RevId: f89cc60b8c11e5eb5eaf8eb69f93b4845481d4d6
This commit is contained in:
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 :
|
||||
|
||||
Reference in New Issue
Block a user