Skip to content

Commit

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

Issue: linuxdeepin/developer-center#7446
  • Loading branch information
FeiWang1119 committed Mar 12, 2024
1 parent a68f560 commit 06b2a4f
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 06b2a4f

Please sign in to comment.