From 6415c4125f296c3d32946c1ea66256f1dad0a1eb Mon Sep 17 00:00:00 2001 From: Konstantinos Sideris Date: Tue, 5 Dec 2017 14:13:26 +0200 Subject: Add style colors for the ScrollBar --- src/ui/ScrollBar.cc | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/ui') 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_); } -- cgit 1.5.1