Skip to content

Commit

Permalink
Add style for menu items with icons
Browse files Browse the repository at this point in the history
I would have preferred to see a check mark next to the icon, but this is not
possible with stylesheets. Added for the "Allies Only" menu.

See longturn#1646.
  • Loading branch information
lmoureaux committed Jan 6, 2023
1 parent 76133b5 commit 6cecdb2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
11 changes: 11 additions & 0 deletions data/themes/gui-qt/Classic/resource.qss
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,17 @@ QMenu::item:selected {
border-radius: 3px;
}

QMenu::icon:checkable {
border: 1px solid transparent;
border-radius: 7px;
padding: 2px;
margin-left: 1px;
}
QMenu::icon:checked {
border-color: grey;
background-color: rgba(0, 0, 0, 32);
}

minimap_view
{
selection-background-color: #ddca97;
Expand Down
10 changes: 10 additions & 0 deletions data/themes/gui-qt/NightStalker/resource.qss
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,16 @@ QMenu::item:selected {
border-radius: 9px;
}

QMenu::icon:checkable {
border: 1px solid transparent;
border-radius: 7px;
padding: 2px;
margin-left: 1px;
}
QMenu::icon:checked {
border-color: #143c63;
background-color: rgba(51, 153, 255, 112);
}

minimap_view
{
Expand Down

0 comments on commit 6cecdb2

Please sign in to comment.