mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-21 22:24:07 +01:00
fix tab highlighting when focused
This commit is contained in:
parent
cd2ab5e0cd
commit
b38bfd4feb
1 changed files with 2 additions and 1 deletions
|
@ -328,7 +328,8 @@ void NotebookTab::paintEvent(QPaintEvent *)
|
|||
|
||||
painter.fillRect(bgRect, tabBackground);
|
||||
|
||||
if (this->highlightColor_ != nullptr)
|
||||
if (this->highlightState_ == HighlightState::Highlighted &&
|
||||
this->highlightColor_ != nullptr)
|
||||
{
|
||||
auto col = *this->highlightColor_.get();
|
||||
col.setAlpha(255);
|
||||
|
|
Loading…
Reference in a new issue