Skip to content

Commit

Permalink
macOS: Dark mode: Fix a regression that caused the scrollbar to no lo…
Browse files Browse the repository at this point in the history
…nger be transient. Fixes #2088153 [[Regression] Scroll bars block information](https://bugs.launchpad.net/calibre/+bug/2088153)
  • Loading branch information
kovidgoyal committed Nov 15, 2024
1 parent e16a167 commit e854f08
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/calibre/gui2/progress_indicator/CalibreStyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<const QStyleOptionSlider *>(option);
if (scroll_bar && is_color_dark(option->palette.color(QPalette::Window))) {
bool horizontal = scroll_bar->orientation == Qt::Horizontal;
Expand Down Expand Up @@ -276,7 +278,8 @@ void CalibreStyle::drawComplexControl(ComplexControl control, const QStyleOption
}

return;
}} break;
}} break; // }}}

default:
break;
}
Expand Down

0 comments on commit e854f08

Please sign in to comment.