From e854f0889d84364aed5de8ca46245a1b2f9c8fb8 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 15 Nov 2024 20:01:57 +0530 Subject: [PATCH] macOS: Dark mode: Fix a regression that caused the scrollbar to no longer be transient. Fixes #2088153 [[Regression] Scroll bars block information](https://bugs.launchpad.net/calibre/+bug/2088153) --- src/calibre/gui2/progress_indicator/CalibreStyle.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/calibre/gui2/progress_indicator/CalibreStyle.cpp b/src/calibre/gui2/progress_indicator/CalibreStyle.cpp index 6bd4399829..b9512831bf 100644 --- a/src/calibre/gui2/progress_indicator/CalibreStyle.cpp +++ b/src/calibre/gui2/progress_indicator/CalibreStyle.cpp @@ -208,7 +208,9 @@ void CalibreStyle::drawComplexControl(ComplexControl control, const QStyleOption return QProxyStyle::drawComplexControl(control, &opt, painter, widget); } break; /// }}} - case CC_ScrollBar: { + + case CC_ScrollBar: { // {{{ + if (transient_scroller) break; const QStyleOptionSlider *scroll_bar = qstyleoption_cast(option); if (scroll_bar && is_color_dark(option->palette.color(QPalette::Window))) { bool horizontal = scroll_bar->orientation == Qt::Horizontal; @@ -276,7 +278,8 @@ void CalibreStyle::drawComplexControl(ComplexControl control, const QStyleOption } return; - }} break; + }} break; // }}} + default: break; }