fix tab highlighting when focused

This commit is contained in:
tuckerrrrrrrrrrrr 2020-02-15 22:40:41 -08:00
parent cd2ab5e0cd
commit b38bfd4feb

View file

@ -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);