|
|
|
@ -1,25 +1,18 @@
|
|
|
|
|
package com.fr.design.widgettheme; |
|
|
|
|
|
|
|
|
|
import com.fine.swing.ui.layout.Column; |
|
|
|
|
import com.fr.base.background.ColorBackground; |
|
|
|
|
import com.fr.base.theme.TemplateTheme; |
|
|
|
|
import com.fr.design.gui.frpane.FontSizeComboPane; |
|
|
|
|
import com.fr.design.gui.frpane.UIPercentDragPane; |
|
|
|
|
import com.fr.design.gui.ibutton.UIColorButton; |
|
|
|
|
import com.fr.design.gui.ibutton.UIToggleButton; |
|
|
|
|
import com.fr.design.gui.icombobox.UIComboBox; |
|
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
|
import com.fr.general.IOUtils; |
|
|
|
|
import com.fr.util.ColorUtils; |
|
|
|
|
import com.fr.widgettheme.theme.widget.style.BorderStyle; |
|
|
|
|
import com.fr.widgettheme.theme.widget.style.ButtonBackgroundStyle; |
|
|
|
|
import com.fr.widgettheme.theme.widget.style.ThemeTextStyle; |
|
|
|
|
import com.fr.widgettheme.theme.widget.style.ThemedWidgetStyle; |
|
|
|
|
import com.fr.widgettheme.theme.bean.ButtonBackground; |
|
|
|
|
import com.fr.design.beans.BasicBeanPane; |
|
|
|
|
import com.fr.design.designer.IntervalConstants; |
|
|
|
|
import com.fr.design.file.HistoryTemplateListCache; |
|
|
|
|
import com.fr.design.gui.frpane.FontSizeComboPane; |
|
|
|
|
import com.fr.design.gui.frpane.UIPercentDragPane; |
|
|
|
|
import com.fr.design.gui.ibutton.UIButtonGroup; |
|
|
|
|
import com.fr.design.gui.ibutton.UIColorButton; |
|
|
|
|
import com.fr.design.gui.ibutton.UIToggleButton; |
|
|
|
|
import com.fr.design.gui.icombobox.LineComboBox; |
|
|
|
|
import com.fr.design.gui.icombobox.UIComboBox; |
|
|
|
|
import com.fr.design.gui.ilable.UILabel; |
|
|
|
|
import com.fr.design.gui.style.FRFontPane; |
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
@ -28,10 +21,18 @@ import com.fr.design.layout.TableLayout;
|
|
|
|
|
import com.fr.design.layout.TableLayoutHelper; |
|
|
|
|
import com.fr.design.mainframe.JTemplate; |
|
|
|
|
import com.fr.design.style.color.NewColorSelectBox; |
|
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
|
import com.fr.design.widget.ui.designer.component.UIBoundSpinner; |
|
|
|
|
import com.fr.form.ui.Widget; |
|
|
|
|
import com.fr.general.FRFont; |
|
|
|
|
import com.fr.general.IOUtils; |
|
|
|
|
import com.fr.util.ColorUtils; |
|
|
|
|
import com.fr.widgettheme.theme.bean.ButtonBackground; |
|
|
|
|
import com.fr.widgettheme.theme.panel.ButtonStyleDefinedPane; |
|
|
|
|
import com.fr.widgettheme.theme.widget.style.BorderStyle; |
|
|
|
|
import com.fr.widgettheme.theme.widget.style.ButtonBackgroundStyle; |
|
|
|
|
import com.fr.widgettheme.theme.widget.style.ThemeTextStyle; |
|
|
|
|
import com.fr.widgettheme.theme.widget.style.ThemedWidgetStyle; |
|
|
|
|
import com.fr.widgettheme.theme.widget.theme.WidgetThemeDisplayConstants; |
|
|
|
|
import com.fr.widgettheme.util.WidgetStyleComponentCombiner; |
|
|
|
|
import com.fr.widgettheme.util.WidgetThemeDesignerUtils; |
|
|
|
@ -45,6 +46,9 @@ import java.util.HashMap;
|
|
|
|
|
import java.util.List; |
|
|
|
|
import java.util.Map; |
|
|
|
|
|
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.cell; |
|
|
|
|
import static com.fine.swing.ui.layout.Layouts.column; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 样式设置pane抽象类 |
|
|
|
|
* |
|
|
|
@ -152,10 +156,18 @@ public abstract class BaseStyleSettingPane<T extends Widget> extends BasicBeanPa
|
|
|
|
|
paneMap.put(StyleSetting.FONT, frFontPane); |
|
|
|
|
paneMap.put(StyleSetting.BTN_BACKGROUND, buttonStyleDefinedPane); |
|
|
|
|
paneMap.put(StyleSetting.SELECT_COLOR, selectBgColorBox); |
|
|
|
|
paneMap.put(StyleSetting.WIDGET_BACKGROUND, WidgetStyleComponentCombiner.combineWidgetBackgroundComponent(widgetBgColorSelectBox, widgetBgAlphaDragPane, WidgetThemeDisplayConstants.THEME_PC_WIDGET_BACKGROUND_WIDTH)); |
|
|
|
|
paneMap.put(StyleSetting.WIDGET_BACKGROUND, initBackGroundComponent()); |
|
|
|
|
paneMap.put(StyleSetting.ICON_COLOR, iconColorSelectBox); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private Column initBackGroundComponent() { |
|
|
|
|
return column( |
|
|
|
|
10, |
|
|
|
|
cell(widgetBgColorSelectBox), |
|
|
|
|
cell(widgetBgAlphaDragPane) |
|
|
|
|
).getComponent(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
protected JPanel createHeadPane() { |
|
|
|
|
UILabel headLabel = new UILabel(Toolkit.i18nText("Fine-Design_Widget_Theme_Style_Setting")); |
|
|
|
|
String[] titles = new String[]{Toolkit.i18nText("Fine-Design_Widget_Follow_Theme"), Toolkit.i18nText("Fine-Design_Widget_Theme_Custom")}; |
|
|
|
|