mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
fix tab highlighting when focused
This commit is contained in:
parent
cd2ab5e0cd
commit
b38bfd4feb
|
@ -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