2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-03 08:05:12 +00:00

fixed linux fonts reading in qt 5.4.0, fixed scrollbars colors

This commit is contained in:
John Preston
2015-02-13 21:09:01 +03:00
parent 27c69895ce
commit f7a5de3cc9
5 changed files with 64 additions and 867 deletions

View File

@@ -1544,6 +1544,9 @@ OverviewWidget::OverviewWidget(QWidget *parent, const PeerData *peer, MediaOverv
_scroll.setWidget(&_inner);
_scroll.move(0, 0);
_inner.move(0, 0);
updateScrollColors();
_scroll.show();
connect(&_scroll, SIGNAL(scrolled()), &_inner, SLOT(onUpdateSelected()));
connect(&_scroll, SIGNAL(scrolled()), this, SLOT(onScroll()));
@@ -1789,6 +1792,7 @@ void OverviewWidget::fillSelectedItems(SelectedItemSet &sel, bool forDelete) {
}
void OverviewWidget::updateScrollColors() {
if (!App::historyScrollBarColor()) return;
_scroll.updateColors(App::historyScrollBarColor(), App::historyScrollBgColor(), App::historyScrollBarOverColor(), App::historyScrollBgOverColor());
}