diff options
author | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-12-05 14:13:26 +0200 |
---|---|---|
committer | Konstantinos Sideris <sideris.konstantin@gmail.com> | 2017-12-05 14:13:26 +0200 |
commit | 6415c4125f296c3d32946c1ea66256f1dad0a1eb (patch) | |
tree | 5f677cc5fcf2f2ed253d0e9605d43ce67c8af072 /src | |
parent | d6e6ec25817cd670cd2713906c488b3e3a41003d (diff) |
Add style colors for the ScrollBar
Diffstat (limited to 'src')
-rw-r--r-- | src/ui/ScrollBar.cc | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/ui/ScrollBar.cc b/src/ui/ScrollBar.cc index 24f97461..1330ca07 100644 --- a/src/ui/ScrollBar.cc +++ b/src/ui/ScrollBar.cc @@ -85,10 +85,7 @@ ScrollBar::paintEvent(QPaintEvent *) p.setPen(Qt::NoPen); - QColor bg(33, 33, 33, 30); - QColor handle(0, 0, 0, 80); - - p.setBrush(bg); + p.setBrush(backgroundColor()); QRect backgroundArea(Padding, 0, handleWidth_, height()); p.drawRoundedRect(backgroundArea, roundRadius_, roundRadius_); @@ -104,7 +101,7 @@ ScrollBar::paintEvent(QPaintEvent *) int handle_y = (value() * (areaHeight - handleHeight - roundRadius_ / 2)) / maximum(); - p.setBrush(handle); + p.setBrush(handleColor()); QRect handleArea(Padding, handle_y, handleWidth_, handleHeight); p.drawRoundedRect(handleArea, roundRadius_, roundRadius_); } |