diff --git a/css/leptonChrome.css b/css/leptonChrome.css index 674f300..8528b9a 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -11806,7 +11806,8 @@ #context-sendpagetodevice-popup, #context-sendlinktodevice-popup, #frame > menupopup, - #spell-dictionaries-menu + #spell-dictionaries-menu, + #context-ask-chat > menupopup ) > menuitem:not([type="checkbox"][checked="true"], [type="radio"]), .openintabs-menuitem, @@ -11891,7 +11892,8 @@ #context-sendpagetodevice-popup, #context-sendlinktodevice-popup, #frame > menupopup, - #spell-dictionaries-menu + #spell-dictionaries-menu, + #context-ask-chat > menupopup ) > menuitem:not([type="checkbox"][checked="true"], [type="radio"]), .openintabs-menuitem, @@ -11985,7 +11987,8 @@ #context-sendpagetodevice-popup, #context-sendlinktodevice-popup, #frame > menupopup, - #spell-dictionaries-menu + #spell-dictionaries-menu, + #context-ask-chat > menupopup ) > menuitem:not([type="checkbox"][checked="true"], [type="radio"]), .openintabs-menuitem, @@ -12054,7 +12057,8 @@ #context-sendpagetodevice-popup, #context-sendlinktodevice-popup, #frame > menupopup, - #spell-dictionaries-menu + #spell-dictionaries-menu, + #context-ask-chat > menupopup ) > menuitem:not([type="checkbox"][checked="true"], [type="radio"]), .openintabs-menuitem, @@ -12803,6 +12807,35 @@ --menuitem-image: url("chrome://browser/skin/bookmark.svg"); } } + /*= context-ask-chat =========================================================*/ + #ask-chat-shortcuts .toolbarbutton-icon { + order: -1; + margin-inline-end: var(--arrowpanel-menuitem-margin-inline) !important; + } + #ask-chat-shortcuts .subviewbutton:nth-child(1) { + list-style-image: url("../icons/apps-list-detail.svg"); + } + #ask-chat-shortcuts .subviewbutton:nth-child(2) { + list-style-image: url("../icons/code-text.svg"); + } + #ask-chat-shortcuts .subviewbutton:nth-child(3) { + list-style-image: url("../icons/tetris-app.svg"); + } + #ask-chat-shortcuts .subviewbutton:nth-child(4) { + list-style-image: url("../icons/arrow-up-exclamation.svg"); + } + #context-ask-chat menuitem:nth-child(1) { + --menuitem-image: url("../icons/apps-list-detail.svg"); + } + #context-ask-chat menuitem:nth-child(2) { + --menuitem-image: url("../icons/code-text.svg"); + } + #context-ask-chat menuitem:nth-child(3) { + --menuitem-image: url("../icons/tetris-app.svg"); + } + #context-ask-chat menuitem:nth-child(4) { + --menuitem-image: url("../icons/arrow-up-exclamation.svg"); + } /*= main-context-menu-frame ==================================================*/ #context-showonlythisframe { --menuitem-image: url("../icons/eye-show.svg"); @@ -26895,7 +26928,8 @@ #context-sendpagetodevice-popup, #context-sendlinktodevice-popup, #frame > menupopup, - #spell-dictionaries-menu + #spell-dictionaries-menu, + #context-ask-chat > menupopup ) > menuitem:not([type="checkbox"][checked="true"], [type="radio"]), .openintabs-menuitem, @@ -26999,7 +27033,8 @@ #context-sendpagetodevice-popup, #context-sendlinktodevice-popup, #frame > menupopup, - #spell-dictionaries-menu + #spell-dictionaries-menu, + #context-ask-chat > menupopup ) > menuitem:not([type="checkbox"][checked="true"], [type="radio"]), .openintabs-menuitem, @@ -27092,7 +27127,8 @@ #context-sendpagetodevice-popup, #context-sendlinktodevice-popup, #frame > menupopup, - #spell-dictionaries-menu + #spell-dictionaries-menu, + #context-ask-chat > menupopup ) > menuitem:not([type="checkbox"][checked="true"], [type="radio"]), .openintabs-menuitem, @@ -27156,7 +27192,8 @@ #context-sendpagetodevice-popup, #context-sendlinktodevice-popup, #frame > menupopup, - #spell-dictionaries-menu + #spell-dictionaries-menu, + #context-ask-chat > menupopup ) > menuitem:not([type="checkbox"][checked="true"], [type="radio"]), .openintabs-menuitem, @@ -27458,6 +27495,7 @@ /*= toolbar-context-menu =====================================================*/ /*= Tab Mix Plus =============================================================*/ /*= contentAreaContextMenu ===================================================*/ + /*= context-ask-chat =========================================================*/ /*= main-context-menu-frame ==================================================*/ /*= Tab Mix Plus =============================================================*/ /*= downloadsContextMenu =====================================================*/ /*= placeContext =============================================================*/ /*= Notification =============================================================*/ @@ -28130,6 +28168,52 @@ --menuitem-image: url("chrome://browser/skin/bookmark.svg"); } } +@media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") { + #ask-chat-shortcuts .toolbarbutton-icon { + order: -1; + margin-inline-end: var(--arrowpanel-menuitem-margin-inline) !important; + } +} +@media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") { + #ask-chat-shortcuts .subviewbutton:nth-child(1) { + list-style-image: url("../icons/apps-list-detail.svg"); + } +} +@media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") { + #ask-chat-shortcuts .subviewbutton:nth-child(2) { + list-style-image: url("../icons/code-text.svg"); + } +} +@media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") { + #ask-chat-shortcuts .subviewbutton:nth-child(3) { + list-style-image: url("../icons/tetris-app.svg"); + } +} +@media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") { + #ask-chat-shortcuts .subviewbutton:nth-child(4) { + list-style-image: url("../icons/arrow-up-exclamation.svg"); + } +} +@media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") { + #context-ask-chat menuitem:nth-child(1) { + --menuitem-image: url("../icons/apps-list-detail.svg"); + } +} +@media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") { + #context-ask-chat menuitem:nth-child(2) { + --menuitem-image: url("../icons/code-text.svg"); + } +} +@media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") { + #context-ask-chat menuitem:nth-child(3) { + --menuitem-image: url("../icons/tetris-app.svg"); + } +} +@media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") { + #context-ask-chat menuitem:nth-child(4) { + --menuitem-image: url("../icons/arrow-up-exclamation.svg"); + } +} @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") { #context-showonlythisframe { --menuitem-image: url("../icons/eye-show.svg"); diff --git a/css/leptonChromeESR.css b/css/leptonChromeESR.css index fadf4ab..65b0030 100644 --- a/css/leptonChromeESR.css +++ b/css/leptonChromeESR.css @@ -12244,7 +12244,8 @@ #context-sendpagetodevice-popup, #context-sendlinktodevice-popup, #frame > menupopup, - #spell-dictionaries-menu + #spell-dictionaries-menu, + #context-ask-chat > menupopup ) > menuitem:not([type="checkbox"][checked="true"], [type="radio"]), .openintabs-menuitem, @@ -12329,7 +12330,8 @@ #context-sendpagetodevice-popup, #context-sendlinktodevice-popup, #frame > menupopup, - #spell-dictionaries-menu + #spell-dictionaries-menu, + #context-ask-chat > menupopup ) > menuitem:not([type="checkbox"][checked="true"], [type="radio"]), .openintabs-menuitem, @@ -12426,7 +12428,8 @@ #context-sendpagetodevice-popup, #context-sendlinktodevice-popup, #frame > menupopup, - #spell-dictionaries-menu + #spell-dictionaries-menu, + #context-ask-chat > menupopup ) > menuitem:not([type="checkbox"][checked="true"], [type="radio"]), .openintabs-menuitem, @@ -12502,7 +12505,8 @@ #context-sendpagetodevice-popup, #context-sendlinktodevice-popup, #frame > menupopup, - #spell-dictionaries-menu + #spell-dictionaries-menu, + #context-ask-chat > menupopup ) > menuitem:not([type="checkbox"][checked="true"], [type="radio"]), .openintabs-menuitem, @@ -12686,7 +12690,8 @@ #context-sendpagetodevice-popup, #context-sendlinktodevice-popup, #frame > menupopup, - #spell-dictionaries-menu + #spell-dictionaries-menu, + #context-ask-chat > menupopup ) > menuitem:not([type="checkbox"][checked="true"], [type="radio"]), .openintabs-menuitem, @@ -13434,6 +13439,35 @@ --menuitem-image: url("chrome://browser/skin/bookmark.svg"); } } + /*= context-ask-chat =========================================================*/ + #ask-chat-shortcuts .toolbarbutton-icon { + order: -1; + margin-inline-end: var(--arrowpanel-menuitem-margin-inline) !important; + } + #ask-chat-shortcuts .subviewbutton:nth-child(1) { + list-style-image: url("../icons/apps-list-detail.svg"); + } + #ask-chat-shortcuts .subviewbutton:nth-child(2) { + list-style-image: url("../icons/code-text.svg"); + } + #ask-chat-shortcuts .subviewbutton:nth-child(3) { + list-style-image: url("../icons/tetris-app.svg"); + } + #ask-chat-shortcuts .subviewbutton:nth-child(4) { + list-style-image: url("../icons/arrow-up-exclamation.svg"); + } + #context-ask-chat menuitem:nth-child(1) { + --menuitem-image: url("../icons/apps-list-detail.svg"); + } + #context-ask-chat menuitem:nth-child(2) { + --menuitem-image: url("../icons/code-text.svg"); + } + #context-ask-chat menuitem:nth-child(3) { + --menuitem-image: url("../icons/tetris-app.svg"); + } + #context-ask-chat menuitem:nth-child(4) { + --menuitem-image: url("../icons/arrow-up-exclamation.svg"); + } /*= main-context-menu-frame ==================================================*/ #context-showonlythisframe { --menuitem-image: url("../icons/eye-show.svg"); diff --git a/icons/apps-list-detail.svg b/icons/apps-list-detail.svg new file mode 100644 index 0000000..39a1bea --- /dev/null +++ b/icons/apps-list-detail.svg @@ -0,0 +1,3 @@ + + + diff --git a/icons/arrow-up-exclamation.svg b/icons/arrow-up-exclamation.svg new file mode 100644 index 0000000..e5c57bf --- /dev/null +++ b/icons/arrow-up-exclamation.svg @@ -0,0 +1,3 @@ + + + diff --git a/icons/code-text.svg b/icons/code-text.svg new file mode 100644 index 0000000..f55df35 --- /dev/null +++ b/icons/code-text.svg @@ -0,0 +1,3 @@ + + + diff --git a/icons/tetris-app.svg b/icons/tetris-app.svg new file mode 100644 index 0000000..ab0ef1b --- /dev/null +++ b/icons/tetris-app.svg @@ -0,0 +1,3 @@ + + + diff --git a/src/icons/context_menu/_content_area.scss b/src/icons/context_menu/_content_area.scss index 5c884cf..06fcdd3 100644 --- a/src/icons/context_menu/_content_area.scss +++ b/src/icons/context_menu/_content_area.scss @@ -292,6 +292,38 @@ } } +/*= context-ask-chat =========================================================*/ +#ask-chat-shortcuts .toolbarbutton-icon { + order: -1; + margin-inline-end: var(--arrowpanel-menuitem-margin-inline) !important; +} +#ask-chat-shortcuts .subviewbutton:nth-child(1) { + list-style-image: url("../icons/apps-list-detail.svg"); +} +#ask-chat-shortcuts .subviewbutton:nth-child(2) { + list-style-image: url("../icons/code-text.svg"); +} +#ask-chat-shortcuts .subviewbutton:nth-child(3) { + list-style-image: url("../icons/tetris-app.svg"); +} +#ask-chat-shortcuts .subviewbutton:nth-child(4) { + list-style-image: url("../icons/arrow-up-exclamation.svg"); +} + + +#context-ask-chat menuitem:nth-child(1) { + --menuitem-image: url("../icons/apps-list-detail.svg"); +} +#context-ask-chat menuitem:nth-child(2) { + --menuitem-image: url("../icons/code-text.svg"); +} +#context-ask-chat menuitem:nth-child(3) { + --menuitem-image: url("../icons/tetris-app.svg"); +} +#context-ask-chat menuitem:nth-child(4) { + --menuitem-image: url("../icons/arrow-up-exclamation.svg"); +} + /*= main-context-menu-frame ==================================================*/ #context-showonlythisframe { --menuitem-image: url("../icons/eye-show.svg"); diff --git a/src/icons/layout/_menu_common.scss b/src/icons/layout/_menu_common.scss index 3885026..ffa5d98 100644 --- a/src/icons/layout/_menu_common.scss +++ b/src/icons/layout/_menu_common.scss @@ -31,7 +31,7 @@ $_globalMenus: "#main-menubar > menu"; $_libraryMenuitem: "menupopup:is(#organizeButtonPopup, #maintenanceButtonPopup) > #{$_iconMenuitem}"; $_libraryMenu: "menupopup:is(#viewMenuPopup, #maintenanceButtonPopup) > #{$_iconMenu}"; $_sendTabMenuPopup: "#context_sendTabToDevicePopupMenu, #context-sendpagetodevice-popup, #context-sendlinktodevice-popup"; -$_otherPopupMenuitem: "menupopup:is(#{$_sendTabMenuPopup}, #frame > menupopup, #spell-dictionaries-menu) > menuitem#{$_checkMenu}"; +$_otherPopupMenuitem: "menupopup:is(#{$_sendTabMenuPopup}, #frame > menupopup, #spell-dictionaries-menu, #context-ask-chat > menupopup) > menuitem#{$_checkMenu}"; $_otherIconMenu: ".openintabs-menuitem, #blockedPopupDontShowMessage, #BMB_viewBookmarksToolbar, #sidebarMenu-popup:is(menupopup)"; //-- Mixin ---------------------------------------------------------------------