adwaita-qt icon indicating copy to clipboard operation
adwaita-qt copied to clipboard

Rendering of menus doesn't look right

Open nparkanyi opened this issue 2 years ago • 1 comments

  • The little blue highlight bar is missing on the selected menu
  • Poor contrast on the submenu arrow
  • The selection rectangle seems to spill outside the boundary a bit adwaitaqt_menu

nparkanyi avatar Sep 15 '22 01:09 nparkanyi

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

nparkanyi avatar Sep 15 '22 01:09 nparkanyi

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

grulja avatar Dec 07 '22 11:12 grulja