Browse Source

CHART-1634 修改基本组件,添加灰化样式

master
mengao 7 years ago
parent
commit
f439e77536
  1. 6
      designer_base/src/com/fr/design/gui/ibutton/UIButtonGroup.java

6
designer_base/src/com/fr/design/gui/ibutton/UIButtonGroup.java

@ -200,7 +200,11 @@ public class UIButtonGroup<T> extends JPanel implements GlobalNameObserver {
if (isPressed(b)) { if (isPressed(b)) {
g.setColor(Color.white); g.setColor(Color.white);
} else { } 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()); SwingUtilities2.drawStringUnderlineCharAt(b, g, text, mnemonicIndex, textRec.x + getTextShiftOffset(), textRec.y + fm.getAscent() + getTextShiftOffset());

Loading…
Cancel
Save