setColor("time_tick_bg", new RGB(247, 247, 247)); //$NON-NLS-1$
setColor("time_tick_line", new RGB(159, 159, 159)); //$NON-NLS-1$
- setColor("lifecycle_initializing", new RGB(123, 182, 240)); //$NON-NLS-1$
- setColor("lifecycle_running", new RGB(194, 238, 131)); //$NON-NLS-1$
- setColor("lifecycle_pausing", new RGB(190, 190, 190)); //$NON-NLS-1$
- setColor("lifecycle_terminating", new RGB(223, 143, 140)); //$NON-NLS-1$
+ setColor("lifecycle_initializing", new RGB(32, 212, 204)); //$NON-NLS-1$
+ setColor("lifecycle_running", new RGB(78, 118, 248)); //$NON-NLS-1$
+ setColor("lifecycle_pausing", new RGB(229, 101, 173)); //$NON-NLS-1$
+ setColor("lifecycle_terminating", new RGB(255, 181, 109)); //$NON-NLS-1$
setColor("add_chart_normal_stroke", new RGB(168, 168, 168)); //$NON-NLS-1$
setColor("add_chart_hover_stroke", new RGB(47, 85, 92)); //$NON-NLS-1$
protected final int balloonHalfWidth = balloon.getBounds().width / 2;
protected final int balloonHalfHeight = balloon.getBounds().height / 2;
- protected static final int TICK_LINE_HEIGHT_TALL = 4;
- protected static final int TICK_LINE_HEIGHT_SMALL = 2;
+ protected static final int TIME_LINE_MID_LINE_HEIGHT = 1;
+ protected static final int TICK_LINE_HEIGHT_TALL = 6;
+ protected static final int TICK_LINE_HEIGHT_SMALL = 4;
protected static final int TIME_STRING_PIXEL_Y = 4;
protected static final int MARKER_START_Y = 5;
public void draw(GC gc, DATimeline timeline) {
Rectangle rt = timeline.getClientArea();
gc.setFont(timeTickFont);
- gc.setBackground(ColorResources.TIMELINE_BG_COLOR);
+ gc.setBackground(ColorResources.GRAY_245);
gc.fillRectangle(rt);
gc.setForeground(ColorResources.TIMELINE_TICK_COLOR);
// draw headLine
gc.drawLine(0, 0, rt.width, 0);
// draw underLine
- gc.drawLine(0, rt.height - 1, rt.width, rt.height - 1);
+ gc.drawLine(0, rt.height - TIME_LINE_MID_LINE_HEIGHT , rt.width, rt.height - TIME_LINE_MID_LINE_HEIGHT);
// draw time
int pixelX = 0;
if (startTime % 10 == 0) {
drawTimeString(gc, startTime, pixelX, TIME_STRING_PIXEL_Y);
gc.drawLine(pixelX, rt.height - TICK_LINE_HEIGHT_TALL,
- pixelX, rt.height - 1);
+ pixelX, rt.height - TIME_LINE_MID_LINE_HEIGHT);
} else if (startTime % 5 == 0) {
if (scale >= DATimeline.SCALE_400) {
drawTimeString(gc, startTime, pixelX, TIME_STRING_PIXEL_Y);
}
gc.drawLine(pixelX, rt.height - TICK_LINE_HEIGHT_TALL, pixelX,
- rt.height - 1);
+ rt.height - TIME_LINE_MID_LINE_HEIGHT);
} else {
if (scale >= DATimeline.SCALE_800) {
drawTimeString(gc, startTime, pixelX, TIME_STRING_PIXEL_Y);
}
gc.drawLine(pixelX, rt.height - TICK_LINE_HEIGHT_SMALL,
- pixelX, rt.height - 1);
+ pixelX, rt.height - TIME_LINE_MID_LINE_HEIGHT);
}
}