mirror of
https://github.com/YACReader/yacreader
synced 2025-06-03 09:08:20 -04:00
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:
parent
2d0cbe3513
commit
74812fe705
@ -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)); });
|
||||
|
Loading…
x
Reference in New Issue
Block a user