|
|
@ -3,6 +3,8 @@ |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
package com.fr.design.designer.creator; |
|
|
|
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.FineColorManager; |
|
|
|
import com.fr.base.theme.FormTheme; |
|
|
|
import com.fr.base.theme.FormTheme; |
|
|
|
import com.fr.base.theme.TemplateTheme; |
|
|
|
import com.fr.base.theme.TemplateTheme; |
|
|
@ -377,8 +379,9 @@ public class XCreatorUtils { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void setupTemplateTheme(XCreator container, final FormTheme currentTemplateUsingTheme, TemplateThemeCompatible compatible) { |
|
|
|
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() { |
|
|
|
Form.traversalWidget(container.toData(), new WidgetGather() { |
|
|
|
@Override |
|
|
|
@Override |
|
|
|
public void dealWith(Widget widget) { |
|
|
|
public void dealWith(Widget widget) { |
|
|
|