|
|
@ -3,9 +3,11 @@ package com.fr.design.widgettheme.common; |
|
|
|
import com.fr.design.widgettheme.StyleSetting; |
|
|
|
import com.fr.design.widgettheme.StyleSetting; |
|
|
|
import com.fr.design.widgettheme.BaseStyleSettingPane; |
|
|
|
import com.fr.design.widgettheme.BaseStyleSettingPane; |
|
|
|
import com.fr.form.ui.TreeEditor; |
|
|
|
import com.fr.form.ui.TreeEditor; |
|
|
|
|
|
|
|
import com.fr.util.ColorUtils; |
|
|
|
import com.fr.widgettheme.theme.widget.theme.cell.TreeTheme; |
|
|
|
import com.fr.widgettheme.theme.widget.theme.cell.TreeTheme; |
|
|
|
import org.jetbrains.annotations.Nullable; |
|
|
|
import org.jetbrains.annotations.Nullable; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
import java.awt.Color; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.Arrays; |
|
|
|
import java.util.List; |
|
|
|
import java.util.List; |
|
|
|
|
|
|
|
|
|
|
@ -56,6 +58,9 @@ public class TreeEditorSettingPane<T extends TreeEditor> extends BaseStyleSettin |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
styleSettingHead.setSelectedIndex(1); |
|
|
|
styleSettingHead.setSelectedIndex(1); |
|
|
|
colorSelectBox.setSelectObject(treeTheme.getThemeColor()); |
|
|
|
colorSelectBox.setSelectObject(treeTheme.getThemeColor()); |
|
|
|
|
|
|
|
Color widgetBgColor = treeTheme.getWidgetBackground().getColor(); |
|
|
|
|
|
|
|
widgetBgColorSelectBox.setSelectObject(ColorUtils.ignoreColorAlpha(widgetBgColor)); |
|
|
|
|
|
|
|
widgetBgAlphaDragPane.populateBean(ColorUtils.roundColorAlphaDouble(widgetBgColor)); |
|
|
|
assignFontSizePane(treeTheme); |
|
|
|
assignFontSizePane(treeTheme); |
|
|
|
} |
|
|
|
} |
|
|
|
switchCard(); |
|
|
|
switchCard(); |
|
|
@ -83,6 +88,7 @@ public class TreeEditorSettingPane<T extends TreeEditor> extends BaseStyleSettin |
|
|
|
|
|
|
|
|
|
|
|
protected void updateTreeStyleBean(TreeTheme treeTheme) { |
|
|
|
protected void updateTreeStyleBean(TreeTheme treeTheme) { |
|
|
|
treeTheme.setThemeColor(colorSelectBox.getSelectObject()); |
|
|
|
treeTheme.setThemeColor(colorSelectBox.getSelectObject()); |
|
|
|
|
|
|
|
treeTheme.setWidgetBackground(ColorUtils.createColorBackgroundWithAlpha(widgetBgColorSelectBox.getSelectObject(), widgetBgAlphaDragPane.updateBean())); |
|
|
|
assignFontSizeStyle(treeTheme); |
|
|
|
assignFontSizeStyle(treeTheme); |
|
|
|
switchCard(); |
|
|
|
switchCard(); |
|
|
|
} |
|
|
|
} |
|
|
|