Skip to content

Commit 860e654

Browse files
add separator line at the bottom of the toolbar
1 parent 4772d3d commit 860e654

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

sqldev/src/main/java/org/utplsql/sqldev/ui/runner/GradientToolbar.xtend

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,23 @@ class GradientToolbar extends JToolBar {
1414
return
1515
}
1616

17-
// paint gradient background from top to bottom
17+
// paint gradient background from top to bottom with separator line at the bottom
1818
val g2d = g as Graphics2D
1919
val w = width
20-
val h = height
20+
val h = height - 1
2121
val h2 = height / 2 as int
2222
val colorTop = new Color(237, 237, 237)
2323
val colorMiddle = new Color(244, 244, 244)
2424
val colorBottom = new Color(254, 254, 254)
25+
val colorBottomLine = Color.LIGHT_GRAY
2526
val gp1 = new GradientPaint(0, 0, colorTop, 0, h2, colorMiddle)
2627
g2d.paint = gp1
2728
g2d.fillRect(0, 0, w, h2)
2829
val gp2 = new GradientPaint(0, h2, colorMiddle, 0, h, colorBottom)
2930
g2d.paint = gp2
3031
g2d.fillRect(0, h2, w, h)
32+
g2d.paint = colorBottomLine
33+
g2d.fillRect(0, h, w, h+1)
3134

3235
// do rest, changing opaque to ensure background is not overwritten
3336
setOpaque(false)

0 commit comments

Comments
 (0)