Used a more stylized look for the quick navigation scrollbar in the go to flow widget. TODO: the handler width should be dynamically calculated

This commit is contained in:
Luis Ángel San Martín 2016-10-30 10:18:19 +01:00
parent 2d0cbe3513
commit 74812fe705

View File

@ -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)); });