Commit 0d5a9d0f authored by Jan Blackquill's avatar Jan Blackquill 🌈 Committed by Nate Graham
Browse files

kstyle: make shortcuts in menus look visually subdued

This helps with the visual hierarchy in menus.

BUG: 456254
FIXED-IN: 5.26
parent eef93418
Pipeline #212790 passed with stage
in 4 minutes and 45 seconds
......@@ -5144,7 +5144,10 @@ bool Style::drawMenuItemControl(const QStyleOption *option, QPainter *painter, c
const int textFlags(Qt::AlignVCenter | Qt::AlignRight);
QString accelerator(text.mid(tabPosition + 1));
text = text.left(tabPosition);
painter->save();
painter->setOpacity(0.7);
drawItemText(painter, textRect, textFlags, palette, enabled, accelerator, role);
painter->restore();
}
// render text
......
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