From 635d293ce202d5455a66970a14264fdaa284ac77 Mon Sep 17 00:00:00 2001 From: Eike Ziller Date: Wed, 31 Aug 2022 11:42:24 +0200 Subject: [PATCH] Make progress details and toggle button more visually connected By using the same background color. If the progress details and the toggled button have different background colors, it makes it visually more difficult to realize that they belong together. Task-number: QTCREATORBUG-28078 Change-Id: I7ce8c5702b10e10ea81b644d5ea4f7ebcfb8c223 Reviewed-by: Alessandro Portale Reviewed-by: Qt CI Bot --- src/plugins/coreplugin/progressmanager/futureprogress.cpp | 3 ++- src/plugins/coreplugin/progressmanager/progressbar.cpp | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/plugins/coreplugin/progressmanager/futureprogress.cpp b/src/plugins/coreplugin/progressmanager/futureprogress.cpp index 4aad44d94c4..55fc29225d9 100644 --- a/src/plugins/coreplugin/progressmanager/futureprogress.cpp +++ b/src/plugins/coreplugin/progressmanager/futureprogress.cpp @@ -303,8 +303,9 @@ void FutureProgress::paintEvent(QPaintEvent *) QPainter p(this); if (creatorTheme()->flag(Theme::FlatToolBars)) { p.fillRect(rect(), StyleHelper::baseColor()); + p.fillRect(rect(), creatorTheme()->color(Theme::FancyToolButtonSelectedColor)); } else { - QLinearGradient grad = StyleHelper::statusBarGradient(rect()); + QLinearGradient grad = StyleHelper::statusBarGradient(rect()); p.fillRect(rect(), grad); } } diff --git a/src/plugins/coreplugin/progressmanager/progressbar.cpp b/src/plugins/coreplugin/progressmanager/progressbar.cpp index 196fe2c4b4e..e143b26251c 100644 --- a/src/plugins/coreplugin/progressmanager/progressbar.cpp +++ b/src/plugins/coreplugin/progressmanager/progressbar.cpp @@ -230,7 +230,7 @@ void ProgressBar::paintEvent(QPaintEvent *) const int separatorHeight = m_separatorVisible ? SEPARATOR_HEIGHT : 0; if (m_separatorVisible) { QRectF innerRect = QRectF(this->rect()).adjusted(0.5, 0.5, -0.5, -0.5); - p.setPen(StyleHelper::sidebarShadow()); + p.setPen(StyleHelper::baseColor()); p.drawLine(innerRect.topLeft(), innerRect.topRight()); if (creatorTheme()->flag(Theme::DrawToolBarHighlights)) {