From ab13a84103d2989ce4f2667f614ac9c8267b82d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Levy=2EXie-=E8=A7=A3=E5=AE=89=E6=A3=AE?= Date: Fri, 18 Oct 2024 17:28:17 +0800 Subject: [PATCH] =?UTF-8?q?REPORT-137586=20fix:=20=E6=8E=A7=E4=BB=B6?= =?UTF-8?q?=E8=83=8C=E6=99=AF=E4=BA=A4=E4=BA=92=E9=80=BB=E8=BE=91=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fr/design/widget/component/BackgroundCompPane.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/designer-base/src/main/java/com/fr/design/widget/component/BackgroundCompPane.java b/designer-base/src/main/java/com/fr/design/widget/component/BackgroundCompPane.java index 98e4844ade..c3cdb42990 100644 --- a/designer-base/src/main/java/com/fr/design/widget/component/BackgroundCompPane.java +++ b/designer-base/src/main/java/com/fr/design/widget/component/BackgroundCompPane.java @@ -1,5 +1,6 @@ package com.fr.design.widget.component; +import com.formdev.flatlaf.util.ScaledEmptyBorder; import com.fr.design.dialog.BasicPane; import com.fr.design.gui.ibutton.UIButtonGroup; import com.fr.design.gui.ilable.UILabel; @@ -12,7 +13,6 @@ import javax.swing.JPanel; import static com.fine.swing.ui.layout.Layouts.cell; import static com.fine.swing.ui.layout.Layouts.column; -import static com.fine.swing.ui.layout.Layouts.flex; import static com.fine.swing.ui.layout.Layouts.row; import static com.fr.design.constants.LayoutConstants.LEFT_WEIGHT; import static com.fr.design.constants.LayoutConstants.RIGHT_WEIGHT; @@ -40,26 +40,24 @@ public abstract class BackgroundCompPane extends BasicPane { backgroundHead = new UIButtonGroup(titles); panel = column(VERTICAL_GAP, row( - flex(LEFT_WEIGHT), cell(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Background_Initial"))).weight(RIGHT_WEIGHT / 2), cell(initialBackgroundEditor).weight(RIGHT_WEIGHT / 2) ), row( - flex(LEFT_WEIGHT), cell(new UILabel(com.fr.design.i18n.Toolkit.i18nText("Fine-Design_Form_Background_Over"))).weight(RIGHT_WEIGHT / 2), cell(overBackgroundEditor).weight(RIGHT_WEIGHT / 2) ), row( - flex(LEFT_WEIGHT), cell(getClickLabel()).weight(RIGHT_WEIGHT / 2), cell(clickBackgroundEditor).weight(RIGHT_WEIGHT / 2) ) - ).getComponent(); + ).with(it -> it.setBorder(new ScaledEmptyBorder(0, 10, 0, 0))).getComponent(); this.add(column(VERTICAL_GAP, row( cell(headLabel).weight(LEFT_WEIGHT), cell(backgroundHead).weight(RIGHT_WEIGHT) - ) + ), + cell(panel) ).getComponent()); }