From b38bfd4feb5018a8957bdbbac640fe684ce87b9e Mon Sep 17 00:00:00 2001 From: tuckerrrrrrrrrrrr Date: Sat, 15 Feb 2020 22:40:41 -0800 Subject: [PATCH] fix tab highlighting when focused --- src/widgets/helper/NotebookTab.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/helper/NotebookTab.cpp b/src/widgets/helper/NotebookTab.cpp index 145657348..c29b98430 100644 --- a/src/widgets/helper/NotebookTab.cpp +++ b/src/widgets/helper/NotebookTab.cpp @@ -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);