Skip to content

Commit

Permalink
Use native controls in context menus on linux #125
Browse files Browse the repository at this point in the history
  • Loading branch information
bmFtZQ committed Dec 31, 2023
1 parent 34fba1b commit 056ef6f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
6 changes: 3 additions & 3 deletions chrome/global/popup.css
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,6 @@ panelview .toolbarbutton-1,
menuitem:is(.menuitem-iconic:not([data-usercontextid]), [type="checkbox"], [type="radio"], [checked], [selected]) .menu-iconic-icon {
-moz-context-properties: fill !important;
fill: currentColor !important;
appearance: none !important;
}

.menu-right,
Expand Down Expand Up @@ -613,9 +612,10 @@ panelview .toolbarbutton-1,
}

menuitem[checked="true"] > .menu-iconic-left,
.menu-iconic > .menu-iconic-left,
.menuitem-iconic > .menu-iconic-left {
menu > .menu-iconic-left,
menuitem > .menu-iconic-left {
margin: 0 !important;
padding: 0 !important
}

#context-navigation:not([hidden]) {
Expand Down
4 changes: 4 additions & 0 deletions chrome/icons/icons.css
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,10 @@
/* Context Menu Icons */
menupopup>menuitem:is([checked="true"], [selected="true"]) .menu-iconic-icon {
list-style-image: url("checkmark.svg") !important;

@media (-moz-platform: linux) {
list-style-image: none !important;
}
}

#context-video-pictureinpicture:not([checked="true"]) .menu-iconic-icon {
Expand Down

0 comments on commit 056ef6f

Please sign in to comment.