Skip to content

Commit

Permalink
Fix matching pressed/hover menu/submenu accent color
Browse files Browse the repository at this point in the history
  • Loading branch information
dpizetta committed Mar 24, 2021
1 parent cf0146e commit 5938cf4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion qdarkstyle/qss/_styles.scss
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ QMenuBar {
padding: 2px;
border: $BORDER_1;
color: $COLOR_TEXT_1;

selection-background-color: $COLOR_ACCENT_3;
&:focus {
border: $BORDER_SELECTION_2;
}
Expand All @@ -360,6 +360,7 @@ QMenuBar {
padding: 4px;
background: transparent;
border: 0px solid $COLOR_BACKGROUND_4;
background-color: $COLOR_ACCENT_3;
}

&:pressed {
Expand All @@ -383,6 +384,7 @@ QMenu {
color: $COLOR_TEXT_1;
margin: 0px;
background-color: $COLOR_BACKGROUND_3;
selection-background-color: $COLOR_ACCENT_3;

&::separator {
height: 1px;
Expand All @@ -403,6 +405,10 @@ QMenu {

&:selected {
color: $COLOR_TEXT_1;
background-color: $COLOR_ACCENT_3;
}
&:pressed {
background-color: $COLOR_ACCENT_3;
}
}

Expand Down

0 comments on commit 5938cf4

Please sign in to comment.