Commit 48110036 authored by Nate Graham's avatar Nate Graham
Browse files

Add pressed appearance for checked checkboxes and radio buttons

There was a pressed appearance for unchecked checkboxes and radio
buttons, but we were missing one for their checked states. This
commit simply adds the same effect: a slight and subtle darkening
while pressed.

BUG: 451428
FIXED-IN: 5.26
parent a9e6a862
Pipeline #230551 failed with stage
in 2 minutes and 11 seconds
......@@ -800,7 +800,7 @@ void Helper::renderCheckBoxBackground(QPainter *painter,
case CheckPartial:
case CheckOn:
painter->setBrush(transparent);
painter->setBrush(transparent.darker(sunken ? radioCheckSunkenDarkeningFactor : 100));
painter->drawRoundedRect(frameRect, radius, radius);
break;
......@@ -953,7 +953,7 @@ void Helper::renderRadioButtonBackground(QPainter *painter,
painter->drawEllipse(frameRect);
break;
case RadioOn:
painter->setBrush(transparent);
painter->setBrush(transparent.darker(sunken ? radioCheckSunkenDarkeningFactor : 100));
painter->drawEllipse(frameRect);
break;
case RadioAnimated:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment