Browse Source

无jira任务 代码质量

newui
vito 11 months ago
parent
commit
80f3e6d05a
  1. 4
      designer-base/src/main/java/com/fr/design/gui/ibutton/UIButton.java

4
designer-base/src/main/java/com/fr/design/gui/ibutton/UIButton.java

@ -280,8 +280,8 @@ public class UIButton extends JButton implements UIObserver, UITextComponent {
*/ */
public void setNormalPainted(boolean isNormalPressed) { public void setNormalPainted(boolean isNormalPressed) {
this.isNormalPainted = isNormalPressed; this.isNormalPainted = isNormalPressed;
boolean isPrimary = FineClientProperties.hasStyle(this, FineClientProperties.STYLE_PRIMARY); boolean primary = FineClientProperties.hasStyle(this, FineClientProperties.STYLE_PRIMARY);
if (!isNormalPainted() && !isPrimary) { if (!isNormalPainted() && !primary) {
setOpaque(false); setOpaque(false);
} }
} }

Loading…
Cancel
Save