Skip to content

Commit

Permalink
Add: Icons - Compatibility for widget.gtk.native-context-menus
Browse files Browse the repository at this point in the history
But, not works yet.
Firefox builds shuold allow icons.
  • Loading branch information
black7375 committed Jun 3, 2022
1 parent 3dd9a17 commit 8593122
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions css/leptonChrome.css
Original file line number Diff line number Diff line change
Expand Up @@ -6005,8 +6005,8 @@
background-image: var(--menuitem-image);
}

/* For native context menus on macOS */
@supports -moz-bool-pref("widget.macos.native-context-menus") {
/* For native context menus */
@supports -moz-bool-pref("widget.macos.native-context-menus") or -moz-bool-pref("widget.gtk.native-context-menus") {
:not(menu, #ContentSelectDropdown)
> menupopup
> menuitem:not(.menuitem-iconic, .bookmark-item, .in-menulist, [type="checkbox"], [checked="true"]),
Expand Down
4 changes: 2 additions & 2 deletions src/icons/_layout_menu.scss
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ menupopup menu:not([type="checkbox"], [type="radio"]),
background-image: var(--menuitem-image);
}

/* For native context menus on macOS */
@supports -moz-bool-pref("widget.macos.native-context-menus") {
/* For native context menus */
@include Option("widget.macos.native-context-menus", "widget.gtk.native-context-menus") {
#{$_nestedPopupIconMenus} {
list-style-image: var(--menuitem-image, url("../icons/blank.svg")) !important;
}
Expand Down

0 comments on commit 8593122

Please sign in to comment.