Browse Source

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

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

4
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)) {
g.setColor(Color.white);
} else {
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());

Loading…
Cancel
Save