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 } |