checked scrollbar colors
This commit is contained in:
@@ -199,10 +199,17 @@ void ScrollBar::paintEvent(QPaintEvent *)
|
||||
QPainter painter(this);
|
||||
painter.fillRect(rect(), this->colorScheme.ScrollbarBG);
|
||||
|
||||
painter.fillRect(QRect(0, 0, width(), _buttonHeight), QColor(255, 0, 0));
|
||||
painter.fillRect(QRect(0, height() - _buttonHeight, width(), _buttonHeight), QColor(255, 0, 0));
|
||||
painter.fillRect(QRect(0, 0, width(), _buttonHeight), this->colorScheme.ScrollbarArrow);
|
||||
painter.fillRect(QRect(0, height() - _buttonHeight, width(), _buttonHeight), this->colorScheme.ScrollbarArrow);
|
||||
|
||||
painter.fillRect(_thumbRect, QColor(0, 255, 255));
|
||||
// mouse over thumb
|
||||
if (this->_mouseDownIndex == 2) {
|
||||
painter.fillRect(_thumbRect, this->colorScheme.ScrollbarThumbSelected);
|
||||
}
|
||||
// mouse not over thumb
|
||||
else {
|
||||
painter.fillRect(_thumbRect, this->colorScheme.ScrollbarThumb);
|
||||
}
|
||||
|
||||
// ScrollBarHighlight *highlight = highlights;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user