summaryrefslogtreecommitdiff
path: root/plugingui
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2017-04-16 17:55:44 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2017-04-16 17:55:44 +0200
commit5156131e09669de6f9c2343ebe7dd1bf24bb024b (patch)
tree52c5cd5f350d57f3e959853048657144e850c971 /plugingui
parentb4ad2a3b4eb808081fccef26482508db552a914e (diff)
Improve the frame look to make it more 3D-ish.
Diffstat (limited to 'plugingui')
-rw-r--r--plugingui/frame.cc9
-rw-r--r--plugingui/frame.h4
2 files changed, 10 insertions, 3 deletions
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);
diff --git a/plugingui/frame.h b/plugingui/frame.h
index e8c8778..c571fdc 100644
--- a/plugingui/frame.h
+++ b/plugingui/frame.h
@@ -82,7 +82,9 @@ private:
//
// content frame
- GUI::Colour frame_colour{0};
+ GUI::Colour frame_colour_top{0.95};
+ GUI::Colour frame_colour_bottom{0.4};
+ GUI::Colour frame_colour_side{0.6};
// content box
Widget* content{nullptr};