Browse Source

模板主题tab修改

fbp/release
renekton 2 months ago
parent
commit
665df85d08
  1. 7
      designer-base/src/main/java/com/fr/design/mainframe/theme/FormThemeProfilePane.java
  2. 2
      designer-base/src/main/java/com/fr/design/mainframe/theme/TemplateThemeEditorPane.java

7
designer-base/src/main/java/com/fr/design/mainframe/theme/FormThemeProfilePane.java

@ -1,5 +1,6 @@
package com.fr.design.mainframe.theme;
import com.formdev.flatlaf.util.ScaledEmptyBorder;
import com.fr.base.theme.FormTheme;
import com.fr.base.theme.TemplateThemeConfig;
import com.fr.base.theme.settings.ThemedComponentStyle;
@ -99,5 +100,11 @@ public class FormThemeProfilePane extends TemplateThemeProfilePane<FormTheme> {
ThemedComponentStyle componentStyle = componentStyleSettingPane.updateBean();
theme.setComponentStyle(componentStyle);
}
@Override
protected void buildTabPane() {
uiTabbedPane = tabPaneBuilder.withHeadRatio(0.6f).build();
uiTabbedPane.setBorder(new ScaledEmptyBorder(10, 5, 10, 1));
}
}
}

2
designer-base/src/main/java/com/fr/design/mainframe/theme/TemplateThemeEditorPane.java

@ -360,7 +360,7 @@ public abstract class TemplateThemeEditorPane<T extends TemplateTheme> extends J
return ThemePreviewTerminal.PC;
}
private void buildTabPane() {
protected void buildTabPane() {
uiTabbedPane = tabPaneBuilder.withHeadRatio(0.6f).build();
uiTabbedPane.setBorder(new ScaledEmptyBorder(10, 5, 10, 1));
}

Loading…
Cancel
Save