wlStatusMessage.setForeground( display.getSystemColor( SWT.COLOR_RED ) ); props.setLook( wlStatusMessage ); fdlStatusMessage = new FormData();
fdlPOP3Message.top = new FormAttachment( 0, 3 * margin ); wlPOP3Message.setLayoutData( fdlPOP3Message ); wlPOP3Message.setForeground( GUIResource.getInstance().getColorOrange() );
fdlPOP3Message.top = new FormAttachment( wActionType, 3 * margin ); wlPOP3Message.setLayoutData( fdlPOP3Message ); wlPOP3Message.setForeground( GUIResource.getInstance().getColorOrange() );
private Label createLabel(Composite parent, String text) { Label label= new Label(parent, SWT.WRAP); if (text != null) label.setText(text); label.setBackground(fBackgroundColor); label.setForeground(fForegroundColor); GridData gd= new GridData(SWT.FILL, SWT.FILL, true, false); label.setLayoutData(gd); return label; }
@Override public void run() { statusLabel.setForeground(getColor(color)); } });
private Label createLabel(Composite parent, String text) { Label label = new Label(parent, SWT.NONE); GridData data= new GridData(GridData.FILL_HORIZONTAL); label.setLayoutData(data); if (text != null) label.setText(text); label.setBackground(fBackgroundColor); label.setForeground(fForegroundColor); return label; }
private Label createLabel(Composite parent, String text) { Label label = new Label(parent, SWT.NONE); if (text != null) label.setText(text); label.setBackground(fBackgroundColor); label.setForeground(fForegroundColor); return label; }
private Label createLabel(Composite parent, String text) { Label label = new Label(parent, SWT.NONE); GridData data= new GridData(GridData.FILL_HORIZONTAL); label.setLayoutData(data); if (text != null) label.setText(text); label.setBackground(fBackgroundColor); label.setForeground(fForegroundColor); return label; }
private Label createLabel(Composite parent, String text) { Label label= new Label(parent, SWT.WRAP); if (text != null) label.setText(text); label.setBackground(fBackgroundColor); label.setForeground(fForegroundColor); GridData gd= new GridData(SWT.FILL, SWT.FILL, true, false); label.setLayoutData(gd); return label; }
private Label createLabel(Composite parent, String text) { Label label= new Label(parent, SWT.WRAP); if (text != null) label.setText(text); label.setBackground(fBackgroundColor); label.setForeground(fForegroundColor); GridData gd= new GridData(SWT.FILL, SWT.FILL, true, false); label.setLayoutData(gd); return label; }
private Label createLabel(Composite parent, String text) { Label label = new Label(parent, SWT.NONE); GridData data= new GridData(GridData.FILL_HORIZONTAL); label.setLayoutData(data); if (text != null) label.setText(text); label.setBackground(fBackgroundColor); label.setForeground(fForegroundColor); return label; }
public Label createLabel(final String text, final SwtWindowUtils.ColorValue color, final Font font) { Label label = new Label(this.shell, SWT.NONE); label.setFont(font); label.setForeground(this.shell.getDisplay().getSystemColor(color.value)); label.setText(text); return label; }
private Label createHeader(Composite parent, String text) { Label label = new Label(parent, SWT.NONE); GridData data= new GridData(GridData.FILL_HORIZONTAL); label.setLayoutData(data); if (text != null) label.setText(text); label.setBackground(fBackgroundColor); label.setForeground(fForegroundColor); label.setFont(JFaceResources.getHeaderFont()); return label; }
private Label createHeader(Composite parent, String text) { Label label = new Label(parent, SWT.NONE); GridData data= new GridData(GridData.FILL_HORIZONTAL); label.setLayoutData(data); if (text != null) label.setText(text); label.setBackground(fBackgroundColor); label.setForeground(fForegroundColor); label.setFont(JFaceResources.getHeaderFont()); return label; }
private Label createTitleLabel(Composite parent, String text) { Label label = new Label(parent, SWT.NONE); if (text != null) label.setText(text); label.setBackground(fBackgroundColor); label.setForeground(fForegroundColor); label.setFont(JFaceResources.getHeaderFont()); fHeaderLabels.add(label); return label; }
private Label createBanner(Composite parent, String text) { Label label = new Label(parent, SWT.NONE); if (text != null) label.setText(text); label.setBackground(fBackgroundColor); label.setForeground(fForegroundColor); label.setFont(JFaceResources.getBannerFont()); return label; } }
private void addStatusLabel(int newSide) { statusLabel = new Label(composite, BORDER | LEFT); statusLabel.setLayoutData(getRowData(newSide)); statusLabel.setForeground(getColor(COLOR_WHITE)); statusLabel.setText(statusString); statusLabel.setBackground(getColor(backgroundColor)); }
private void createSmallNavigator(Composite parent, IntroLink[] links) { for (int i = 0; i < links.length; i++) { Control c = createImageHyperlink(parent, links[i]); c.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER)); } for (int i = 0; i < links.length; i++) { Label text = toolkit.createLabel(parent, links[i].getLabel()); text.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_CENTER)); text.setForeground(toolkit.getColors().getColor(IFormColors.TITLE)); } }
@Override public void mouseUp(MouseEvent e) { boolean vis = !config.getBooleanParameter(keys[f_i] + ".vis", true ); config.setParameter(keys[f_i] + ".vis", vis ); listener.visibilityChange( vis, f_i ); lblDesc.setForeground(vis?Colors.getSystemColor(lblDesc.getDisplay(), SWT.COLOR_BLACK ):Colors.grey ); } });
private void setStatusLabelColors(Color foreground, Color background) { if (foreground == null || background == null) return; if (fStatusLabelForeground != null) { fStatusLabelForeground.dispose(); } fStatusLabelForeground = new Color(fStatusLabel.getDisplay(), Colors.blend(background.getRGB(), foreground.getRGB(), 0.56f)); fStatusLabel.setForeground(fStatusLabelForeground); fStatusLabel.setBackground(background); }