|
|
|
@ -1,5 +1,6 @@
|
|
|
|
|
package com.fr.design.mainframe; |
|
|
|
|
|
|
|
|
|
import com.fine.theme.utils.FineClientProperties; |
|
|
|
|
import com.formdev.flatlaf.util.ScaledEmptyBorder; |
|
|
|
|
import com.fr.design.DesignState; |
|
|
|
|
import com.fr.design.base.mode.DesignModeContext; |
|
|
|
@ -88,7 +89,6 @@ public class CenterRegionContainerPane extends JPanel {
|
|
|
|
|
centerTemplateCardPane.setBorder(new ScaledEmptyBorder(0, 10, 10, 10)); |
|
|
|
|
this.add(toolbarPane, BorderLayout.NORTH); |
|
|
|
|
this.setBackground(UIManager.getColor("Center.SpaceColor")); |
|
|
|
|
this.setBorder(new ScaledEmptyBorder(0, 0, 10, 0)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
public ToolBarMenuDock getToolBarMenuDock() { |
|
|
|
@ -100,6 +100,7 @@ public class CenterRegionContainerPane extends JPanel {
|
|
|
|
|
*/ |
|
|
|
|
private void combineUpTooBar() { |
|
|
|
|
combineUp = new UIToolbar(FlowLayout.LEFT); |
|
|
|
|
FineClientProperties.setStyle(combineUp, "topTools"); |
|
|
|
|
combineUp.setBorder(new ScaledEmptyBorder(10, 10, 10, 10)); |
|
|
|
|
combineUp.setLayout(new FlowLayout(FlowLayout.LEFT, 5, 2)); |
|
|
|
|
setUpUpToolBar(null); |
|
|
|
@ -221,6 +222,7 @@ public class CenterRegionContainerPane extends JPanel {
|
|
|
|
|
|
|
|
|
|
// 颜色,字体那些按钮的工具栏
|
|
|
|
|
toolbarPane.add(toolbarComponent = ad.resetToolBar(toolbarComponent, plus), BorderLayout.CENTER); |
|
|
|
|
FineClientProperties.setStyle(toolbarComponent, "topTools"); |
|
|
|
|
toolbarComponent.setBorder(new ScaledEmptyBorder(0, 10, 10, 10)); |
|
|
|
|
JPanel customNorthPane = strategy.customNorthPane(toolbarPane, plus); |
|
|
|
|
if (!isExist(customNorthPane)) { |
|
|
|
|