Browse Source

Pull request #5820: REPORT-59010 漏传

Merge in DESIGN/design from ~KERRY/design_10.0:release/11.0 to release/11.0

* commit '5eb2538703801c695457b91b7519eb08eadb0895':
  REPORT-59010 漏传
bugfix/11.0
kerry 3 years ago
parent
commit
7850b6e601
  1. 7
      designer-form/src/main/java/com/fr/design/designer/creator/XCreatorUtils.java

7
designer-form/src/main/java/com/fr/design/designer/creator/XCreatorUtils.java

@ -3,6 +3,8 @@
*/
package com.fr.design.designer.creator;
import com.fr.base.theme.FineColorFlushUtils;
import com.fr.base.theme.FineColorGather;
import com.fr.base.theme.FineColorManager;
import com.fr.base.theme.FormTheme;
import com.fr.base.theme.TemplateTheme;
@ -377,8 +379,9 @@ public class XCreatorUtils {
}
public static void setupTemplateTheme(XCreator container, final FormTheme currentTemplateUsingTheme, TemplateThemeCompatible compatible) {
FineColorManager.traverse(container.toData(), new FineColorManager.FineColorReplaceByTheme(currentTemplateUsingTheme, compatible));
FineColorGather colorGather = new FineColorManager.FineColorReplaceByTheme(currentTemplateUsingTheme, compatible);
FineColorFlushUtils.replaceCacheObject(container.toData(), colorGather);
FineColorManager.traverse(container.toData(), colorGather);
Form.traversalWidget(container.toData(), new WidgetGather() {
@Override
public void dealWith(Widget widget) {

Loading…
Cancel
Save