From 74812fe705de29e7c0754f553eb81cd2a308eee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luis=20=C3=81ngel=20San=20Mart=C3=ADn?= Date: Sun, 30 Oct 2016 10:18:19 +0100 Subject: [PATCH] Used a more stylized look for the quick navigation scrollbar in the go to flow widget. TODO: the handler width should be dynamically calculated --- YACReader/goto_flow_toolbar.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/YACReader/goto_flow_toolbar.cpp b/YACReader/goto_flow_toolbar.cpp index 4fe09d79..2aedede1 100644 --- a/YACReader/goto_flow_toolbar.cpp +++ b/YACReader/goto_flow_toolbar.cpp @@ -20,16 +20,16 @@ GoToFlowToolBar::GoToFlowToolBar(QWidget * parent) slider = new QSlider(Qt::Horizontal,this); slider->setStyleSheet( "QSlider::groove:horizontal {" - " border: 1px solid white;" - " border-radius: 6px;" - " background: rgba(255, 255, 255, 50);" - " margin: 2px 0;" + " border: 1px solid #22FFFFFF;" + " border-radius: 1px;" + " background: #77000000;" + " margin: 2px 0;" + " padding: 1px;" "}" "QSlider::handle:horizontal {" - " background: rgba(0, 0, 0, 200);" - " border: 1px solid white;" - " width: 24px;" - " border-radius: 6px;" + " background: #55FFFFFF;" + " width: 48px;" + " border-radius: 1px;" "}" ); connect(slider, &QSlider::valueChanged, this, [&](int v) { emit(setCenter(v)); });