Colorize entire split input header instead of just the channel name (#3379)
Co-authored-by: Paweł <zneix@zneix.eu>
This commit is contained in:
@@ -785,11 +785,19 @@ void SplitHeader::paintEvent(QPaintEvent *)
|
||||
{
|
||||
QPainter painter(this);
|
||||
|
||||
painter.fillRect(rect(), this->theme->splits.header.background);
|
||||
painter.setPen(this->theme->splits.header.border);
|
||||
QColor background = this->theme->splits.header.background;
|
||||
QColor border = this->theme->splits.header.border;
|
||||
|
||||
if (this->split_->hasFocus())
|
||||
{
|
||||
background = this->theme->splits.header.focusedBackground;
|
||||
border = this->theme->splits.header.focusedBorder;
|
||||
}
|
||||
|
||||
painter.fillRect(rect(), background);
|
||||
painter.setPen(border);
|
||||
painter.drawRect(0, 0, width() - 1, height() - 2);
|
||||
painter.fillRect(0, height() - 1, width(), 1,
|
||||
this->theme->splits.background);
|
||||
painter.fillRect(0, height() - 1, width(), 1, background);
|
||||
}
|
||||
|
||||
void SplitHeader::mousePressEvent(QMouseEvent *event)
|
||||
@@ -909,6 +917,8 @@ void SplitHeader::themeChangedEvent()
|
||||
this->dropdownButton_->setPixmap(getResources().buttons.menuLight);
|
||||
this->addButton_->setPixmap(getResources().buttons.addSplitDark);
|
||||
}
|
||||
|
||||
this->update();
|
||||
}
|
||||
|
||||
void SplitHeader::reloadChannelEmotes()
|
||||
|
||||
Reference in New Issue
Block a user