Browse Source

REPORT-3163 合作开发9.0设计器=>参数面板=》调整工具条背景色

master
plough 7 years ago
parent
commit
a71dd064ac
  1. 8
      designer_form/src/com/fr/design/mainframe/FormHierarchyTreePane.java

8
designer_form/src/com/fr/design/mainframe/FormHierarchyTreePane.java

@ -139,6 +139,14 @@ public class FormHierarchyTreePane extends FormDockView implements HierarchyTree
toolbarDef.addShortCut(sj.getShortCut());
}
UIToolbar toolBar = ToolBarDef.createJToolBar();
toolBar.setUI(new UIToolBarUI(){
@Override
public void paint(Graphics g, JComponent c) {
Graphics2D g2 = (Graphics2D) g;
g2.setColor(new Color(245, 245, 247));
g2.fillRect(0, 0, c.getWidth(), c.getHeight());
}
});
toolbarDef.updateToolBar(toolBar);
JPanel toolBarPane = new JPanel(new BorderLayout());
toolBarPane.add(toolBar, BorderLayout.CENTER);

Loading…
Cancel
Save