core/com.nokia.carbide.discovery.ui/src/com/nokia/carbide/internal/discovery/ui/editor/RoundedCornerComposite.java
changeset 1618 712d047abd8b
parent 1609 085da1889c59
child 1810 2ccd3660a736
equal deleted inserted replaced
1617:94b6d1326534 1618:712d047abd8b
    34 	@Override
    34 	@Override
    35 	public void drawBackground(GC gc, int x, int y, int width, int height) {
    35 	public void drawBackground(GC gc, int x, int y, int width, int height) {
    36 		super.drawBackground(gc, x, y, width, height);
    36 		super.drawBackground(gc, x, y, width, height);
    37 		if (background != null) {
    37 		if (background != null) {
    38 			gc.setBackground(background);
    38 			gc.setBackground(background);
    39 			gc.fillRoundRectangle(0, 0, width, height, 5, 5);
    39 			gc.fillRoundRectangle(0, 0, width, height, 6, 6);
    40 		}
    40 		}
    41 		if (outline != null) {
    41 		if (outline != null) {
    42 			gc.setForeground(outline);
    42 			gc.setForeground(outline);
    43 			gc.drawRoundRectangle(2, 2, width - 4, height - 4, 5, 5);
    43 			gc.drawRoundRectangle(2, 2, width - 4, height - 4, 6, 6);
    44 		}
    44 		}
    45 	}
    45 	}
    46 }
    46 }