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

QFusionStyle does not support transparent buttons

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 5.12.5
    • Widgets: Styles
    • None
    • Linux/X11

    Description

      QFusionStyle uses the following code to determine the button color:

      QColor buttonColor(const QPalette &pal) const {
          QColor buttonColor = pal.button().color();
          int val = qGray(buttonColor.rgb());
          buttonColor = buttonColor.lighter(100 + qMax(1, (180 - val)/6));
          buttonColor.setHsv(buttonColor.hue(), buttonColor.saturation() * 0.75, buttonColor.value());
          return buttonColor;
      }
      

      The call to QColor::setHsv() applies the default alpha value of 255, instead of inheriting the alpha value from the QPalette.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            tpochep Timur Pocheptsov
            bphlipot Brian Phlipot
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes