FedoraQt / adwaita-qt

A style to bend Qt applications to look like they belong into GNOME Shell
Other
488 stars 48 forks source link

Rendering of menus doesn't look right #178

Closed nparkanyi closed 1 year ago

nparkanyi commented 1 year ago
nparkanyi commented 1 year ago

With this:

--- a/src/style/adwaitastyle.cpp
+++ b/src/style/adwaitastyle.cpp
@@ -4932,7 +4932,7 @@ bool Style::drawMenuBarItemControl(const QStyleOption *option, QPainter *painter
     if (useStrongFocus && sunken) {
         StyleOptions styleOptions(painter, QRect(rect.left(), rect.bottom() - 2, rect.width(), 3));
         styleOptions.setColorVariant(_variant);
-        styleOptions.setOutlineColor(Colors::focusColor(StyleOptions(palette, _variant)));
+               styleOptions.setColor(Colors::focusColor(StyleOptions(palette, _variant)));
         Adwaita::Renderer::renderFocusRect(styleOptions);
     }

the highlight rectangle shows up (though it's not the right shade of blue). adwaitaqt_menu2

grulja commented 1 year ago

Fixed with https://github.com/FedoraQt/adwaita-qt/pull/179.