forms.setBackground(getBackgroundColor()); HyperlinkGroup group = forms.getHyperlinkGroup(); group.setBackground(getBackgroundColor());
/** * Create a changes section on the following page. * * @param parent the parent control * @param page the page showing this section * @param configuration the configuration for the synchronize page */ public ChangesSection(Composite parent, AbstractSynchronizePage page, ISynchronizePageConfiguration configuration) { super(parent, SWT.NONE); this.page = page; this.configuration = configuration; GridLayout layout = new GridLayout(); layout.marginHeight = 0; layout.marginWidth = 0; setLayout(layout); GridData data = new GridData(GridData.FILL_BOTH); data.grabExcessVerticalSpace = true; setLayoutData(data); forms = new FormToolkit(parent.getDisplay()); forms.setBackground(getListBackgroundColor()); HyperlinkGroup group = forms.getHyperlinkGroup(); group.setBackground(getListBackgroundColor()); changesSectionContainer = new PageBook(this, SWT.NONE); data = new GridData(GridData.FILL_BOTH); data.grabExcessHorizontalSpace = true; data.grabExcessVerticalSpace = true; changesSectionContainer.setLayoutData(data); }
@Override public void createControl(Composite parent) { fToolkit = new FormToolkit(parent.getDisplay()); fToolkit.setBackground(Display.getDefault().getSystemColor(SWT.COLOR_WIDGET_BACKGROUND));
toolkit.setBackground(null); try { FormText text = toolkit.createFormText(composite, true);
toolkit.setBackground(null); try { FormText text = toolkit.createFormText(composite, true);
toolkit.setBackground(null); try { FormText text = toolkit.createFormText(composite, true);
private void dynamicCreatePartControl(Composite container) { // Create single toolkit instance, which is disposed of on dispose of // intro part. also define background of all presentation. toolkit = new FormToolkit(container.getDisplay()); // Define presentation title color Color bg = sharedStyleManager.getColor(toolkit, "bg"); //$NON-NLS-1$ if (bg != null) { toolkit.setBackground(bg); } toolkit.getHyperlinkGroup().setHyperlinkUnderlineMode( HyperlinkSettings.UNDERLINE_HOVER); // Define presentation title color and image. Form mainForm = toolkit.createForm(container); Color fg = sharedStyleManager.getColor(toolkit, "title.fg"); //$NON-NLS-1$ if (fg != null) mainForm.setForeground(fg); Image bgImage = sharedStyleManager.getImage("title.image", null, null); //$NON-NLS-1$ if (bgImage != null) { mainForm.setBackgroundImage(bgImage); String repeat = sharedStyleManager .getProperty("title.image.repeat"); //$NON-NLS-1$ if (repeat != null && repeat.equalsIgnoreCase("true")) //$NON-NLS-1$ mainForm.setBackgroundImageTiled(true); } mainPageBook = createMainPageBook(toolkit, mainForm); // Add this presentation as a listener to model. getModel().addPropertyListener(this); addToolBarActions(); }