@ -121,6 +121,7 @@ public class DisplayEnhanceMobileStyleDefinePane extends BasicBeanPane<MobileSty
mobileStyle = Reflect . on ( mobileStyleClazz ) . create ( ) . get ( ) ;
WidgetThemeMobileCommonExtraStyle extraStyle = new WidgetThemeMobileCommonExtraStyle ( ) ;
extraStyle . setCustom ( customCombo . getSelectedIndex ( ) = = 1 ) ;
setThemeColor ( extraStyle ) ;
setIconColor ( extraStyle ) ;
setBorderType ( extraStyle ) ;
setBorderRadius ( extraStyle ) ;
@ -144,8 +145,9 @@ public class DisplayEnhanceMobileStyleDefinePane extends BasicBeanPane<MobileSty
createCustomPane ( ) ;
}
protected void createFontPane ( Color defaultFontColor ) {
fontConfigPane = new MobileStyleFontConfigPane ( defaultFontColor ) ;
protected void createFontPane ( ) {
Color fontColor = ColorUtils . hexToColor ( WidgetThemeDesignerUtils . isCurrentTemplateThemeDark ( ) ? WidgetThemeDisplayConstants . COLOR_CCFFFFFF_HEX : WidgetThemeDisplayConstants . COLOR_CC000000_HEX ) ;
fontConfigPane = new MobileStyleFontConfigPane ( fontColor ) ;
settingPane . add ( createLeftRightComponentsPane ( createConfigLabel ( Toolkit . i18nText ( "Fine-Design_Mobile_Widget_Font" ) ) , fontConfigPane ) ) ;
}
@ -202,7 +204,7 @@ public class DisplayEnhanceMobileStyleDefinePane extends BasicBeanPane<MobileSty
// 圆角边框
createBorderRadiusPane ( ) ;
// 字体
createFontPane ( WidgetThemeDisplayConstants . DEFAULT_FONT_COLOR_BLACK ) ;
createFontPane ( ) ;
}
@ -215,7 +217,9 @@ public class DisplayEnhanceMobileStyleDefinePane extends BasicBeanPane<MobileSty
}
protected void initBackgroundColor ( ) {
widgetBackgroundSelectBox . setSelectObject ( WidgetThemeDisplayConstants . DEFAULT_TRANSPARENT_COLOR ) ;
Color widgetBackgroundColor = ColorUtils . hexToColor ( WidgetThemeDesignerUtils . isCurrentTemplateThemeDark ( ) ? WidgetThemeDisplayConstants . COLOR_000000_HEX : WidgetThemeDisplayConstants . COLOR_FFFFFF_HEX ) ;
widgetBackgroundSelectBox . setSelectObject ( widgetBackgroundColor ) ;
widgetBgAlphaDragPane . populateBean ( 0 ) ;
}
protected void createThemePane ( ) {
@ -230,14 +234,15 @@ public class DisplayEnhanceMobileStyleDefinePane extends BasicBeanPane<MobileSty
borderType = new LineComboBox ( WidgetThemeDisplayConstants . MOBILE_BORDER_LINE_STYLE_ARRAY ) ;
borderColorSelectBox = new NewColorSelectBox ( NORMAL_COMBO_WIDTH ) ;
JPanel borderComponent = WidgetStyleComponentCombiner . combineWidgetBorderComponent ( borderType , borderColorSelectBox ) ;
initDefaultLineType ( ) ;
initDefaultBorder ( ) ;
borderType . setPreferredSize ( new Dimension ( NORMAL_COMBO_WIDTH + 15 , 20 ) ) ;
// 边框线型
settingPane . add ( createLeftRightComponentsPane ( createConfigLabel ( Toolkit . i18nText ( "Fine-Design_Mobile_Widget_BorderType" ) ) , borderComponent ) ) ;
}
protected void initDefaultLineType ( ) {
protected void initDefaultBorder ( ) {
borderType . setSelectedLineStyle ( Constants . LINE_THIN ) ;
borderColorSelectBox . setSelectObject ( ColorUtils . hexToColor ( WidgetThemeDesignerUtils . isCurrentTemplateThemeDark ( ) ? WidgetThemeDisplayConstants . COLOR_26FFFFFF_HEX : WidgetThemeDisplayConstants . COLOR_26000000_HEX ) ) ;
}
protected void createBorderRadiusPane ( ) {
@ -294,9 +299,14 @@ public class DisplayEnhanceMobileStyleDefinePane extends BasicBeanPane<MobileSty
protected void createIconColorSelectBox ( ) {
iconColorSelectBox = new NewColorSelectBox ( NORMAL_COMBO_WIDTH ) ;
iconColorSelectBox . setSelectObject ( getCurrentTemplateThemeColor ( ) ) ;
settingPane . add ( createLeftRightComponentsPane ( createConfigLabel ( Toolkit . i18nText ( "Fine-Design_Widget_Theme_Icon_Color" ) ) , iconColorSelectBox ) ) ;
}
protected void setThemeColor ( WidgetThemeMobileCommonExtraStyle extraStyle ) {
if ( themeColorSelectBox ! = null ) {
extraStyle . setThemeColor ( themeColorSelectBox . getSelectObject ( ) ) ;
}
}
protected void setIconColor ( WidgetThemeMobileCommonExtraStyle extraStyle ) {
if ( iconColorSelectBox ! = null ) {
extraStyle . setIconColor ( iconColorSelectBox . getSelectObject ( ) ) ;