From 5156131e09669de6f9c2343ebe7dd1bf24bb024b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Nusser?= Date: Sun, 16 Apr 2017 17:55:44 +0200 Subject: Improve the frame look to make it more 3D-ish. --- plugingui/frame.cc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'plugingui/frame.cc') diff --git a/plugingui/frame.cc b/plugingui/frame.cc index ea2bfe3..d0e7dff 100644 --- a/plugingui/frame.cc +++ b/plugingui/frame.cc @@ -61,8 +61,13 @@ void FrameWidget::repaintEvent(RepaintEvent* repaintEvent) p.drawFilledRectangle(1, 1, width() - 2, bar_height); // frame - p.setColour(frame_colour); - p.drawRectangle(0, 0, width() - 1, height() - 1); + p.setColour(frame_colour_top); + p.drawLine(0, 0, width() - 1, 0); + p.setColour(frame_colour_bottom); + p.drawLine(0, height() - 1, width() - 1, height() - 1); + p.setColour(frame_colour_side); + p.drawLine(0, 0, 0, height() - 1); + p.drawLine(width() - 1, 0, width() - 1, height() - 1); // background p.setColour(background_colour); -- cgit v1.2.3