Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-106916

Fusion style should use QIcon::Selected instead of QIcon::Active when drawing icons for menu items

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.6, 6.3.2
    • Widgets: Styles
    • None

    Description

      When Fusion style draws icon for highlighted menu items, it uses QIcon::Active mode when creating pixmap. I believe that it should use QIcon::Selected instead ("Display the pixmap when the item represented by the icon is selected.").

       

      Also, KDE's QIconEngine (that is used automatically when Qt app is launched in KDE) performs automatic recoloring of monochrome icons based on QIcon::Mode (so that icons will become white instead of dark when background changes to highlight color). It uses QPalette::highlightedText() color for icon when QIcon::Mode is QIcon::Selected. This works with Breeze style (which uses QIcon::Selected) but not with Fusion style.

      Attachments

        Activity

          People

            tpochep Timur Pocheptsov
            equeim Alexey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: