From f439e775363e36e222da1ca23cd63522becd0c34 Mon Sep 17 00:00:00 2001 From: mengao <283296419@qq.com> Date: Wed, 25 Oct 2017 18:47:35 +0800 Subject: [PATCH] =?UTF-8?q?CHART-1634=20=20=E4=BF=AE=E6=94=B9=E5=9F=BA?= =?UTF-8?q?=E6=9C=AC=E7=BB=84=E4=BB=B6=EF=BC=8C=E6=B7=BB=E5=8A=A0=E7=81=B0?= =?UTF-8?q?=E5=8C=96=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/com/fr/design/gui/ibutton/UIButtonGroup.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/designer_base/src/com/fr/design/gui/ibutton/UIButtonGroup.java b/designer_base/src/com/fr/design/gui/ibutton/UIButtonGroup.java index a8ad8f0956..46a281f02d 100644 --- a/designer_base/src/com/fr/design/gui/ibutton/UIButtonGroup.java +++ b/designer_base/src/com/fr/design/gui/ibutton/UIButtonGroup.java @@ -200,7 +200,11 @@ public class UIButtonGroup extends JPanel implements GlobalNameObserver { if (isPressed(b)) { g.setColor(Color.white); } else { - g.setColor(Color.black); + if (b.isEnabled()) { + g.setColor(Color.black); + } else { + g.setColor(UIConstants.LINE_COLOR); + } } SwingUtilities2.drawStringUnderlineCharAt(b, g, text, mnemonicIndex, textRec.x + getTextShiftOffset(), textRec.y + fm.getAscent() + getTextShiftOffset());