From 203b1f316d60445d4a805c6cedacd5e13bcfb94a Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Sat, 2 Dec 2023 13:17:02 +0900 Subject: [PATCH] Add: Icons - Missing icons for upstream #833 --- css/leptonChrome.css | 62 +++++++++++++++-------- css/leptonChromeESR.css | 29 +++++++---- icons/relay-logo.svg | 6 +++ src/icons/_panel.scss | 1 + src/icons/context_menu/_content_area.scss | 30 +++++++---- 5 files changed, 86 insertions(+), 42 deletions(-) create mode 100644 icons/relay-logo.svg diff --git a/css/leptonChrome.css b/css/leptonChrome.css index 8049ffa9..158af24d 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -11203,6 +11203,7 @@ #appMenu_troubleShooting { list-style-image: url("chrome://global/skin/icons/more.svg"); } + #appMenu-report-broken-site-button, #appMenu_help_reportSiteIssue { list-style-image: url("chrome://global/skin/icons/lightbulb.svg"); } @@ -12112,9 +12113,7 @@ #context-openlinkincurrent { --menuitem-image: url("../icons/link-square.svg"); } - #context-openlinkincontainertab { - --menuitem-image: var(--uc-new-tab-icon); - } + #context-openlinkincontainertab, #context-openlinkintab { --menuitem-image: var(--uc-new-tab-icon); } @@ -12250,30 +12249,40 @@ #fill-login-generated-password { --menuitem-image: url("chrome://browser/skin/login.svg"); } + #use-relay-mask { + --menuitem-image: url("../icons/relay-logo.svg"); + } #manage-saved-logins { --menuitem-image: url("../icons/key-multiple.svg"); } - #context-undo { + #context-undo, + #context-pdfjs-undo { --menuitem-image: url("../icons/undo.svg"); } @supports -moz-bool-pref("userChrome.icon.menu.full") { - #context-redo { + #context-redo, + #context-pdfjs-redo { --menuitem-image: url("../icons/redo.svg"); } } - #context-cut { + #context-cut, + #context-pdfjs-cut { --menuitem-image: url("../icons/edit-cut.svg"); } - #context-copy { + #context-copy, + #context-pdfjs-copy { --menuitem-image: url("../icons/edit-copy.svg"); } - #context-paste { + #context-paste, + #context-pdfjs-paste { --menuitem-image: url("../icons/edit-paste.svg"); } - #context-delete { + #context-delete, + #context-pdfjs-delete { --menuitem-image: url("chrome://global/skin/icons/delete.svg"); } - #context-selectall { + #context-selectall, + #context-pdfjs-selectall { --menuitem-image: url("../icons/select-all-on.svg"); } #context-reveal-password { @@ -25665,6 +25674,7 @@ } } @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.panel") { + #appMenu-report-broken-site-button, #appMenu_help_reportSiteIssue { list-style-image: url("chrome://global/skin/icons/lightbulb.svg"); } @@ -26724,11 +26734,7 @@ } } @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") { - #context-openlinkincontainertab { - --menuitem-image: var(--uc-new-tab-icon); - } -} -@media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") { + #context-openlinkincontainertab, #context-openlinkintab { --menuitem-image: var(--uc-new-tab-icon); } @@ -26949,43 +26955,55 @@ --menuitem-image: url("chrome://browser/skin/login.svg"); } } +@media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") { + #use-relay-mask { + --menuitem-image: url("../icons/relay-logo.svg"); + } +} @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") { #manage-saved-logins { --menuitem-image: url("../icons/key-multiple.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-undo { + #context-undo, + #context-pdfjs-undo { --menuitem-image: url("../icons/undo.svg"); } } @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.context_menu") and (-moz-bool-pref: "userChrome.icon.menu.full") { - #context-redo { + #context-redo, + #context-pdfjs-redo { --menuitem-image: url("../icons/redo.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-cut { + #context-cut, + #context-pdfjs-cut { --menuitem-image: url("../icons/edit-cut.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-copy { + #context-copy, + #context-pdfjs-copy { --menuitem-image: url("../icons/edit-copy.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-paste { + #context-paste, + #context-pdfjs-paste { --menuitem-image: url("../icons/edit-paste.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-delete { + #context-delete, + #context-pdfjs-delete { --menuitem-image: url("chrome://global/skin/icons/delete.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-selectall { + #context-selectall, + #context-pdfjs-selectall { --menuitem-image: url("../icons/select-all-on.svg"); } } diff --git a/css/leptonChromeESR.css b/css/leptonChromeESR.css index 57cda846..d2324d83 100644 --- a/css/leptonChromeESR.css +++ b/css/leptonChromeESR.css @@ -11620,6 +11620,7 @@ #appMenu_troubleShooting { list-style-image: url("chrome://global/skin/icons/more.svg"); } + #appMenu-report-broken-site-button, #appMenu_help_reportSiteIssue { list-style-image: url("chrome://global/skin/icons/lightbulb.svg"); } @@ -12721,9 +12722,7 @@ #context-openlinkincurrent { --menuitem-image: url("../icons/link-square.svg"); } - #context-openlinkincontainertab { - --menuitem-image: var(--uc-new-tab-icon); - } + #context-openlinkincontainertab, #context-openlinkintab { --menuitem-image: var(--uc-new-tab-icon); } @@ -12859,30 +12858,40 @@ #fill-login-generated-password { --menuitem-image: url("chrome://browser/skin/login.svg"); } + #use-relay-mask { + --menuitem-image: url("../icons/relay-logo.svg"); + } #manage-saved-logins { --menuitem-image: url("../icons/key-multiple.svg"); } - #context-undo { + #context-undo, + #context-pdfjs-undo { --menuitem-image: url("../icons/undo.svg"); } @supports -moz-bool-pref("userChrome.icon.menu.full") { - #context-redo { + #context-redo, + #context-pdfjs-redo { --menuitem-image: url("../icons/redo.svg"); } } - #context-cut { + #context-cut, + #context-pdfjs-cut { --menuitem-image: url("../icons/edit-cut.svg"); } - #context-copy { + #context-copy, + #context-pdfjs-copy { --menuitem-image: url("../icons/edit-copy.svg"); } - #context-paste { + #context-paste, + #context-pdfjs-paste { --menuitem-image: url("../icons/edit-paste.svg"); } - #context-delete { + #context-delete, + #context-pdfjs-delete { --menuitem-image: url("chrome://global/skin/icons/delete.svg"); } - #context-selectall { + #context-selectall, + #context-pdfjs-selectall { --menuitem-image: url("../icons/select-all-on.svg"); } #context-reveal-password { diff --git a/icons/relay-logo.svg b/icons/relay-logo.svg new file mode 100644 index 00000000..b3ee0aae --- /dev/null +++ b/icons/relay-logo.svg @@ -0,0 +1,6 @@ + + + + \ No newline at end of file diff --git a/src/icons/_panel.scss b/src/icons/_panel.scss index f48eae2d..2b0a8594 100644 --- a/src/icons/_panel.scss +++ b/src/icons/_panel.scss @@ -379,6 +379,7 @@ panelMenuBookmarkThisPage[starred] { #appMenu_troubleShooting { list-style-image: url("chrome://global/skin/icons/more.svg"); } +#appMenu-report-broken-site-button, #appMenu_help_reportSiteIssue { list-style-image: url("chrome://global/skin/icons/lightbulb.svg"); } diff --git a/src/icons/context_menu/_content_area.scss b/src/icons/context_menu/_content_area.scss index f3b34406..e10c0a62 100644 --- a/src/icons/context_menu/_content_area.scss +++ b/src/icons/context_menu/_content_area.scss @@ -25,9 +25,7 @@ #context-openlinkincurrent { --menuitem-image: url("../icons/link-square.svg"); } -#context-openlinkincontainertab { - --menuitem-image: var(--uc-new-tab-icon); -} +#context-openlinkincontainertab, #context-openlinkintab { --menuitem-image: var(--uc-new-tab-icon); } @@ -168,32 +166,44 @@ #fill-login-generated-password { --menuitem-image: url("chrome://browser/skin/login.svg"); } +#use-relay-mask { + --menuitem-image: url("../icons/relay-logo.svg"); +} #manage-saved-logins { --menuitem-image: url("../icons/key-multiple.svg"); } -#context-undo { +#context-undo, +#context-pdfjs-undo { --menuitem-image: url("../icons/undo.svg"); } -#context-redo { +#context-redo, +#context-pdfjs-redo { @include Option("userChrome.icon.menu.full") { --menuitem-image: url("../icons/redo.svg"); } } -#context-cut { +#context-cut, +#context-pdfjs-cut { --menuitem-image: url("../icons/edit-cut.svg"); } -#context-copy { +#context-copy, +#context-pdfjs-copy { --menuitem-image: url("../icons/edit-copy.svg"); } -#context-paste { +#context-paste, +#context-pdfjs-paste { --menuitem-image: url("../icons/edit-paste.svg"); } -#context-delete { +#context-paste-no-formatting { +} +#context-delete, +#context-pdfjs-delete { --menuitem-image: url("chrome://global/skin/icons/delete.svg"); } -#context-selectall { +#context-selectall, +#context-pdfjs-selectall { --menuitem-image: url("../icons/select-all-on.svg"); } #context-reveal-password {