Path: blob/master/scripts/deps/qtbase-fusion-style.patch
4216 views
--- qtbase/src/widgets/styles/qfusionstyle.cpp 2025-09-03 17:32:081+++ qtbase/src/widgets/styles/qfusionstyle.cpp 2025-09-03 17:56:202@@ -588,11 +588,12 @@34painter->setBrush((state & State_Sunken) ? QBrush(pressedColor) : gradient);56- if (option->state & State_HasFocus && option->state & State_KeyboardFocusChange)7+ if (option->state & State_HasFocus && option->state & State_KeyboardFocusChange) {8painter->setPen(highlightedOutline);9- else10- painter->setPen(colorScheme() == Qt::ColorScheme::Dark ? outline.lighter(240)11- : outline.lighter(110));12+ } else {13+ const bool isDark = (option->palette.windowText().color().value() > option->palette.window().color().value());14+ painter->setPen(isDark ? outline.lighter(155) : outline.lighter(110));15+ }16painter->drawRect(rect);1718QColor checkMarkColor = option->palette.text().color().darker(120);192021