Skip to content

Commit

Permalink
fix: icon size of the selected item in context menu
Browse files Browse the repository at this point in the history
change the icon size of the selected item in context menu according to the suggestion from the designer

Issue: linuxdeepin/developer-center#7446
  • Loading branch information
wangfei authored and FeiWang1119 committed Mar 14, 2024
1 parent a68f560 commit 6e1c14b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions styleplugins/chameleon/chameleonstyle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2954,8 +2954,8 @@ bool ChameleonStyle::drawMenuItem(const QStyleOptionMenuItem *option, QPainter *

if (checkable) {
checkRect.setLeft(frameRadius);
checkRect.setWidth(smallIconSize);
checkRect.setHeight(smallIconSize);
checkRect.setWidth(smallIconSize - 2);
checkRect.setHeight(smallIconSize - 4);
checkRect.moveCenter(QPoint(checkRect.left() + smallIconSize / 2, menuItem->rect.center().y()));
painter->setRenderHint(QPainter::Antialiasing);

Expand Down

0 comments on commit 6e1c14b

Please sign in to comment.