From 89cdbce8afbff450779fa994dd6bec068e8030a7 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Sat, 3 Aug 2024 08:11:03 +0300 Subject: [PATCH] iconized context menu: support checkbox menuitems --- chrome/iconized_content_context_menu.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/chrome/iconized_content_context_menu.css b/chrome/iconized_content_context_menu.css index 49cfde0..6662a9a 100644 --- a/chrome/iconized_content_context_menu.css +++ b/chrome/iconized_content_context_menu.css @@ -22,6 +22,13 @@ See the above repository for updates as well as full license text. */ :where(#contentAreaContextMenu > menuitem){ padding-inline-start: 1em !important; } +#contentAreaContextMenu > menuitem[type="checkbox"]::before{ + content: url("chrome://devtools/skin/images/checkbox.svg"); +} +#contentAreaContextMenu > menuitem[type="checkbox"][_moz-menuactive]::before, +#contentAreaContextMenu > menuitem[type="checkbox"][checked="true"]::before{ + background: no-repeat center left url("chrome://global/skin/icons/check.svg"); +} #contentAreaContextMenu > :is(.menu-iconic,.menuitem-iconic)::before{ content: none; }