public Font getUnchangedFont() { return tabfolder.getDisplay().getSystemFont(); }
void updateFolder (int flags) { updateFlags |= flags; if (updateRun != null) return; updateRun = new Runnable() { @Override public void run() { updateRun = null; if (isDisposed()) return; runUpdate(); } }; getDisplay().asyncExec(updateRun); }
void updateFolder (int flags) { updateFlags |= flags; if (updateRun != null) return; updateRun = new Runnable() { public void run() { updateRun = null; if (isDisposed()) return; runUpdate(); } }; getDisplay().asyncExec(updateRun); }
void updateFolder (int flags) { updateFlags |= flags; if (updateRun != null) return; updateRun = new Runnable() { @Override public void run() { updateRun = null; if (isDisposed()) return; runUpdate(); } }; getDisplay().asyncExec(updateRun); }
void updateFolder (int flags) { updateFlags |= flags; if (updateRun != null) return; updateRun = new Runnable() { @Override public void run() { updateRun = null; if (isDisposed()) return; runUpdate(); } }; getDisplay().asyncExec(updateRun); }
void updateFolder (int flags) { updateFlags |= flags; if (updateRun != null) return; updateRun = new Runnable() { @Override public void run() { updateRun = null; if (isDisposed()) return; runUpdate(); } }; getDisplay().asyncExec(updateRun); }
Color getFillColor() { if (fillColor == null) { fillColor = new Color(parent.getDisplay(), CLOSE_FILL); } return fillColor; }
Color getFillColor() { if (fillColor == null) { fillColor = new Color(parent.getDisplay(), CLOSE_FILL); } return fillColor; }
Color getFillColor() { if (fillColor == null) { fillColor = new Color(parent.getDisplay(), CLOSE_FILL); } return fillColor; }
Color getFillColor() { if (fillColor == null) { fillColor = new Color(parent.getDisplay(), CLOSE_FILL); } return fillColor; }
Color getFillColor() { if (fillColor == null) { fillColor = new Color(parent.getDisplay(), CLOSE_FILL); } return fillColor; }
@Override public void setShadowColor(Color color) { this.shadowColor = color; createShadow(parent.getDisplay()); parent.redraw(); }
public void setShadowColor(Color color) { this.shadowColor = color; createShadow(parent.getDisplay()); parent.redraw(); }
@Override public void initialize(AnimationEngine engine) { background = tabItem.getParent().getBackground(); display = tabItem.getParent().getDisplay(); }
void drawBorder(GC gc, int[] shape) { gc.setForeground(parent.getDisplay().getSystemColor(BORDER1_COLOR)); gc.drawPolyline(shape); }
void drawBorder(GC gc, int[] shape) { gc.setForeground(parent.getDisplay().getSystemColor(BORDER1_COLOR)); gc.drawPolyline(shape); }
void drawBorder(GC gc, int[] shape) { gc.setForeground(parent.getDisplay().getSystemColor(BORDER1_COLOR)); gc.drawPolyline(shape); }
void drawBorder(GC gc, int[] shape) { gc.setForeground(parent.getDisplay().getSystemColor(BORDER1_COLOR)); gc.drawPolyline(shape); }
private void styleTabFolder(CTabFolder folder) { Display display = folder.getDisplay(); folder.setSelectionBackground(new Color[]{ display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND), display.getSystemColor(SWT.COLOR_TITLE_BACKGROUND_GRADIENT) }, new int[]{75}, true); folder.setBackground(display.getSystemColor(SWT.COLOR_WIDGET_BACKGROUND)); }
@Override protected void applyCSSProperty(Control control, String property, CSSValue value, String pseudo, CSSEngine engine) throws Exception { if (!(control instanceof CTabFolder)) return; if (value.getCssValueType() == CSSValue.CSS_VALUE_LIST) { Gradient grad = (Gradient) engine.convert(value, Gradient.class, control.getDisplay()); CTabFolder folder = ((CTabFolder) control); Color[] colors = CSSSWTColorHelper.getSWTColors(grad, folder.getDisplay(), engine); int[] percents = CSSSWTColorHelper.getPercents(grad); folder.setSelectionBackground(colors, percents, true); } }