|
|
|
@ -9,6 +9,7 @@ import com.fr.design.gui.ilable.UILabel;
|
|
|
|
|
import com.fr.design.i18n.Toolkit; |
|
|
|
|
import com.fr.design.style.color.NewColorSelectBox; |
|
|
|
|
import com.fr.design.utils.DesignUtils; |
|
|
|
|
import com.fr.design.widget.FRWidgetFactory; |
|
|
|
|
import com.fr.locale.InterProviderFactory; |
|
|
|
|
import com.fr.stable.StringUtils; |
|
|
|
|
import com.fr.util.ColorUtils; |
|
|
|
@ -55,7 +56,8 @@ public class DesktopWidgetStyleEditPane<T extends TemplateTheme> extends WidgetS
|
|
|
|
|
initSelectBackgroundColorBox(); |
|
|
|
|
initFontNameSelectBox(); |
|
|
|
|
return new Component[][]{ |
|
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Widget_Theme_Color")), colorSelectBox}, new Component[]{WidgetThemeDesignerUtils.createTopAlignmentLabel(Toolkit.i18nText("Fine-Design_Widget_Theme_Widget_Background")), initBackGroundComponent()}, |
|
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Widget_Theme_Color")), colorSelectBox}, |
|
|
|
|
new Component[]{WidgetThemeDesignerUtils.createTopAlignmentLabel(Toolkit.i18nText("Fine-Design_Widget_Theme_Widget_Background")), initBackGroundComponent()}, |
|
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Widget_Theme_Border_Line")), lineComboBox}, |
|
|
|
|
new Component[]{null, lineComboColorSelectBox}, |
|
|
|
|
new Component[]{new UILabel(Toolkit.i18nText("Fine-Design_Widget_Theme_Border_Radius")), borderRadiusSpinner}, |
|
|
|
@ -67,7 +69,10 @@ public class DesktopWidgetStyleEditPane<T extends TemplateTheme> extends WidgetS
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private Column initBackGroundComponent() { |
|
|
|
|
return column(10, cell(widgetBgColorSelectBox), cell(widgetBgAlphaDragPane)).getComponent(); |
|
|
|
|
return column(10, |
|
|
|
|
cell(widgetBgColorSelectBox), |
|
|
|
|
cell(FRWidgetFactory.createLineWrapLabel(Toolkit.i18nText("Fine-Design_Form_Widget-Style_Alpha"))), |
|
|
|
|
cell(widgetBgAlphaDragPane)).getComponent(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private void initSelectBackgroundColorBox() { |
|
|
|
|