RGB blendColor = gc.getDevice() .getSystemColor(SWT.COLOR_WIDGET_LIGHT_SHADOW).getRGB(); RGB topGradient = blend(blendColor, parent.getParent() .getBackground().getRGB(), 40); gradientTop = new Color(gc.getDevice(), topGradient); RGB blendColor = gc.getDevice() .getSystemColor(SWT.COLOR_WIDGET_LIGHT_SHADOW).getRGB(); RGB topGradient = blend(blendColor, tabOutlineColor.getRGB(), 40); gradientLineTop = new Color(gc.getDevice(), topGradient); foregroundPattern = new Pattern(gc.getDevice(), 0, 0, 0,
if (!active && !onBottom) { RGB blendColor = gc.getDevice().getSystemColor(SWT.COLOR_WIDGET_LIGHT_SHADOW).getRGB(); RGB topGradient = blend(blendColor, tabOutlineColor.getRGB(), 40); gradientLineTop = new Color(gc.getDevice(), topGradient); foregroundPattern = new Pattern(gc.getDevice(), 0, 0, 0, bounds.height + 1, gradientLineTop,