X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;f=org.argeo.app.ui%2Fsrc%2Forg%2Fargeo%2Fapp%2Fui%2FDefaultEditionLayer.java;h=23982499cf9cfdb05dbd2aded5b1eeed2d6214d7;hb=c6b561fc1d45dd5abcbf86f99ae546bdc3b42b8d;hp=4bfc3de664286b7623f3ab5c93d27685d377cfe0;hpb=a7fa345a6f29787468392a0e739aa16d882e1443;p=gpl%2Fargeo-suite.git diff --git a/org.argeo.app.ui/src/org/argeo/app/ui/DefaultEditionLayer.java b/org.argeo.app.ui/src/org/argeo/app/ui/DefaultEditionLayer.java index 4bfc3de..2398249 100644 --- a/org.argeo.app.ui/src/org/argeo/app/ui/DefaultEditionLayer.java +++ b/org.argeo.app.ui/src/org/argeo/app/ui/DefaultEditionLayer.java @@ -5,8 +5,8 @@ import java.util.List; import java.util.Map; import org.argeo.api.acr.Content; -import org.argeo.api.cms.CmsTheme; import org.argeo.cms.Localized; +import org.argeo.cms.swt.CmsSwtTheme; import org.argeo.cms.swt.CmsSwtUtils; import org.argeo.cms.swt.acr.SwtUiProvider; import org.argeo.cms.swt.widgets.SwtTabbedArea; @@ -57,7 +57,7 @@ public class DefaultEditionLayer implements SuiteLayer { this.workArea.createUiPart(area, context); return area; } - CmsTheme theme = CmsSwtUtils.getCmsTheme(parent); + CmsSwtTheme theme = CmsSwtUtils.getCmsTheme(parent); SwtTabbedArea tabbedArea = createTabbedArea(parent, theme); return tabbedArea; } @@ -170,13 +170,13 @@ public class DefaultEditionLayer implements SuiteLayer { this.defaultView = defaultView; } - SwtTabbedArea createTabbedArea(Composite parent, CmsTheme theme) { + SwtTabbedArea createTabbedArea(Composite parent, CmsSwtTheme theme) { SwtTabbedArea tabbedArea = new SwtTabbedArea(parent, SWT.NONE); tabbedArea.setSingleTab(singleTab); tabbedArea.setBodyStyle(SuiteStyle.mainTabBody.style()); tabbedArea.setTabStyle(SuiteStyle.mainTab.style()); tabbedArea.setTabSelectedStyle(SuiteStyle.mainTabSelected.style()); - tabbedArea.setCloseIcon(SuiteIcon.close.getSmallIcon(theme)); + tabbedArea.setCloseIcon(theme.getSmallIcon(SuiteIcon.close)); tabbedArea.setLayoutData(CmsSwtUtils.fillAll()); return tabbedArea; } @@ -189,7 +189,7 @@ public class DefaultEditionLayer implements SuiteLayer { SashFormEditionArea(Composite parent, int style) { super(parent, SWT.HORIZONTAL); - CmsTheme theme = CmsSwtUtils.getCmsTheme(parent); + CmsSwtTheme theme = CmsSwtUtils.getCmsTheme(parent); Composite editorC; if (SWT.RIGHT_TO_LEFT == (style & SWT.RIGHT_TO_LEFT)) {// arabic, hebrew, etc. @@ -242,7 +242,7 @@ public class DefaultEditionLayer implements SuiteLayer { public FixedEditionArea(Composite parent, int style) { super(parent, style); - CmsTheme theme = CmsSwtUtils.getCmsTheme(parent); + CmsSwtTheme theme = CmsSwtUtils.getCmsTheme(parent); setLayout(CmsSwtUtils.noSpaceGridLayout(2));