Align QMenu icon and indicator.

Align the icon size and positioning of `QMenu::icon` (the icon for custom elements) and `QMenu::indicator` (the checkbox for selected/unselected items). This renders the two visually consistent.

Closes #64.
main
Alex Huszagh 2022-05-05 08:29:10 -05:00
parent f46df07615
commit aa6a420bdc
6 changed files with 6822 additions and 6890 deletions

File diff suppressed because it is too large Load Diff

View File

@ -327,8 +327,11 @@ QMenu::item:disabled
QMenu::indicator
{
width: 1em;
height: 1em;
width: 0.8em;
height: 0.8em;
/* To align with QMenu::icon, which has a 0.23em margin. */
margin-left: 0.3em;
subcontrol-position: center left;
}
QMenu::indicator:non-exclusive:unchecked

View File

@ -327,8 +327,11 @@ QMenu::item:disabled
QMenu::indicator
{
width: 1em;
height: 1em;
width: 0.8em;
height: 0.8em;
/* To align with QMenu::icon, which has a 0.23em margin. */
margin-left: 0.3em;
subcontrol-position: center left;
}
QMenu::indicator:non-exclusive:unchecked

View File

@ -327,8 +327,11 @@ QMenu::item:disabled
QMenu::indicator
{
width: 1em;
height: 1em;
width: 0.8em;
height: 0.8em;
/* To align with QMenu::icon, which has a 0.23em margin. */
margin-left: 0.3em;
subcontrol-position: center left;
}
QMenu::indicator:non-exclusive:unchecked

View File

@ -327,8 +327,11 @@ QMenu::item:disabled
QMenu::indicator
{
width: 1em;
height: 1em;
width: 0.8em;
height: 0.8em;
/* To align with QMenu::icon, which has a 0.23em margin. */
margin-left: 0.3em;
subcontrol-position: center left;
}
QMenu::indicator:non-exclusive:unchecked

View File

@ -327,8 +327,11 @@ QMenu::item:disabled
QMenu::indicator
{
width: 1em;
height: 1em;
width: 0.8em;
height: 0.8em;
/* To align with QMenu::icon, which has a 0.23em margin. */
margin-left: 0.3em;
subcontrol-position: center left;
}
QMenu::indicator:non-exclusive:unchecked