diff --git a/designer-base/src/main/java/com/fr/design/gui/controlpane/UINameableListCellRenderer.java b/designer-base/src/main/java/com/fr/design/gui/controlpane/UINameableListCellRenderer.java index 5cea0c98b1..015e573e21 100644 --- a/designer-base/src/main/java/com/fr/design/gui/controlpane/UINameableListCellRenderer.java +++ b/designer-base/src/main/java/com/fr/design/gui/controlpane/UINameableListCellRenderer.java @@ -1,6 +1,7 @@ package com.fr.design.gui.controlpane; import com.fine.theme.icon.LazyIcon; +import com.fine.theme.utils.FineUIScale; import com.fr.design.gui.ilable.UILabel; import com.fr.design.gui.ilist.ListModelElement; import com.fr.stable.Nameable; @@ -43,7 +44,7 @@ public class UINameableListCellRenderer extends private void initComponents() { editButton = new UILabel() { public Dimension getPreferredSize() { - return new Dimension(BUTTON_WIDTH, BUTTON_HEIGHT); + return FineUIScale.scale(new Dimension(BUTTON_WIDTH, BUTTON_HEIGHT)); } }; editButton.setIcon(isNewStyle ? LIST_EDIT_ICON : CPT_ICON); diff --git a/designer-base/src/main/java/com/fr/design/gui/icombobox/ColorSchemeComboBox.java b/designer-base/src/main/java/com/fr/design/gui/icombobox/ColorSchemeComboBox.java index 9f9a3f13c0..0c7ef3f946 100644 --- a/designer-base/src/main/java/com/fr/design/gui/icombobox/ColorSchemeComboBox.java +++ b/designer-base/src/main/java/com/fr/design/gui/icombobox/ColorSchemeComboBox.java @@ -1,5 +1,6 @@ package com.fr.design.gui.icombobox; +import com.fine.theme.utils.FineUIScale; import com.fr.base.ChartColorMatching; import com.fr.base.ChartPreStyleConfig; import com.fr.base.theme.TemplateTheme; @@ -232,7 +233,7 @@ public class ColorSchemeComboBox extends UIComboBox { @Override public Dimension getPreferredSize() { Dimension preferredSize = super.getPreferredSize(); - preferredSize.setSize(super.getPreferredSize().getWidth(), HEIGHT); + preferredSize.setSize(super.getPreferredSize().getWidth(), FineUIScale.scale(HEIGHT)); return preferredSize; } diff --git a/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/chart/ChartFontPane.java b/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/chart/ChartFontPane.java index fb1e3660b9..3ab67f9569 100644 --- a/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/chart/ChartFontPane.java +++ b/designer-base/src/main/java/com/fr/design/mainframe/theme/edit/chart/ChartFontPane.java @@ -1,6 +1,6 @@ package com.fr.design.mainframe.theme.edit.chart; -import com.fr.base.BaseUtils; +import com.fine.theme.icon.LazyIcon; import com.fr.base.FRContext; import com.fr.design.constants.LayoutConstants; import com.fr.design.dialog.BasicPane; @@ -54,8 +54,8 @@ public class ChartFontPane extends BasicPane { private void initState() { fontNameComboBox = new UIComboBox(DesignUtils.getAvailableFontFamilyNames4Report()); fontSizeComboBox = new UIComboBox(FONT_SIZES); - bold = new UIToggleButton(BaseUtils.readIcon("/com/fr/design/images/m_format/cellstyle/bold.png")); - italic = new UIToggleButton(BaseUtils.readIcon("/com/fr/design/images/m_format/cellstyle/italic.png")); + bold = new UIToggleButton(new LazyIcon("bold")); + italic = new UIToggleButton(new LazyIcon("italic")); fontColor = getColorButton(); } @@ -65,11 +65,10 @@ public class ChartFontPane extends BasicPane { protected void initComponents() { Component[] components = new Component[]{ - fontColor, italic, bold + fontSizeComboBox, fontColor, italic, bold }; - JPanel buttonPane = new JPanel(new BorderLayout()); - buttonPane.add(fontSizeComboBox, BorderLayout.CENTER); - buttonPane.add(GUICoreUtils.createFlowPane(components, FlowLayout.LEFT, LayoutConstants.HGAP_LARGE), BorderLayout.EAST); + JPanel buttonPane = new JPanel(); + buttonPane.add(GUICoreUtils.createFlowPane(components, FlowLayout.LEFT, LayoutConstants.HGAP_LARGE)); this.setLayout(new BorderLayout()); this.add(getContentPane(buttonPane), BorderLayout.CENTER); @@ -90,7 +89,7 @@ public class ChartFontPane extends BasicPane { new Component[]{null, buttonPane} }; - return TableLayoutHelper.createGapTableLayoutPane(components, rows, columnSize, 5, LayoutConstants.VGAP_LARGE); + return TableLayoutHelper.createGapTableLayoutPane(components, rows, columnSize, 5, 0); } public String getUILabelText() { diff --git a/designer-chart/src/main/java/com/fr/design/chart/series/SeriesCondition/impl/ChartHyperPoplinkPane.java b/designer-chart/src/main/java/com/fr/design/chart/series/SeriesCondition/impl/ChartHyperPoplinkPane.java index 35b0c0d5bc..0a6852f18d 100644 --- a/designer-chart/src/main/java/com/fr/design/chart/series/SeriesCondition/impl/ChartHyperPoplinkPane.java +++ b/designer-chart/src/main/java/com/fr/design/chart/series/SeriesCondition/impl/ChartHyperPoplinkPane.java @@ -1,5 +1,6 @@ package com.fr.design.chart.series.SeriesCondition.impl; +import com.fine.theme.utils.FineUIScale; import com.fr.chart.chartattr.Bar2DPlot; import com.fr.chart.chartattr.Chart; import com.fr.chart.chartattr.ChartCollection; @@ -30,7 +31,7 @@ import java.util.HashMap; */ public class ChartHyperPoplinkPane extends AbstractHyperLinkPane { private static final long serialVersionUID = 2469115951510144738L; - private static final int EDIT_PANE_WIDTH = 248; + private static final int EDIT_PANE_WIDTH = FineUIScale.scale(248); private UITextField itemNameTextField; private ChartHyperEditPane hyperEditPane; private ChartComponent chartComponent; @@ -55,7 +56,7 @@ public class ChartHyperPoplinkPane extends AbstractHyperLinkPane implements TreeSelection for (UpdateAction action : getActions()) { action.update(); } - for (UpdateAction action : getMainActions()) { - action.update(); - } } } @@ -1482,10 +1479,6 @@ public class FormDesigner extends TargetComponent
implements TreeSelection return designerActions.toArray(new UpdateAction[designerActions.size()]); } - public UpdateAction[] getMainActions() { - return new UpdateAction[]{}; - } - private List getBasicActions(){ if (basicActions == null) { basicActions = new ArrayList(); diff --git a/designer-realize/src/main/java/com/fr/design/widget/WidgetManageCardPane.java b/designer-realize/src/main/java/com/fr/design/widget/WidgetManageCardPane.java index cf24218aaf..a274b1b488 100644 --- a/designer-realize/src/main/java/com/fr/design/widget/WidgetManageCardPane.java +++ b/designer-realize/src/main/java/com/fr/design/widget/WidgetManageCardPane.java @@ -5,7 +5,7 @@ import com.fr.design.mainframe.ElementCasePane; /** * Created by kerry on 2017/8/29. */ -public class WidgetManageCardPane extends CellWidgetCardPane{ +public class WidgetManageCardPane extends EastCellWidgetCardPane{ public WidgetManageCardPane(ElementCasePane pane) { super(pane); diff --git a/designer-realize/src/main/java/com/fr/design/widget/WidgetPane.java b/designer-realize/src/main/java/com/fr/design/widget/WidgetPane.java index 1887a4007c..006e695ba9 100644 --- a/designer-realize/src/main/java/com/fr/design/widget/WidgetPane.java +++ b/designer-realize/src/main/java/com/fr/design/widget/WidgetPane.java @@ -104,7 +104,7 @@ public class WidgetPane extends AbstractAttrNoScrollPane implements ItemListener } protected CellWidgetCardPane initWidgetCardPane(ElementCasePane pane) { - return eastRegion ? new EastCellWidgetCardPane(pane) : new CellWidgetCardPane(pane); + return new EastCellWidgetCardPane(pane); } protected JPanel createContentPane() {