From 9e01bc6e9793ea7f49226a868e10689dd948743f Mon Sep 17 00:00:00 2001 From: zapSNH <134786889+zapSNH@users.noreply.github.com> Date: Thu, 21 Dec 2023 12:28:36 +0800 Subject: [PATCH] Add: Icons - Update old Photon Icons --- css/leptonChrome.css | 28 ++++++++++++++-------------- css/leptonChromeESR.css | 14 +++++++------- src/icons/_global_menu.scss | 6 +++--- src/icons/_panel.scss | 8 ++++---- 4 files changed, 28 insertions(+), 28 deletions(-) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index 768ace0a..58153ac2 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -10940,7 +10940,7 @@ list-style-image: url("chrome://global/skin/icons/search-glass.svg"); } #appMenu-translate-button { - list-style-image: url(chrome://browser/skin/translations.svg); + list-style-image: url("../icons/translations.svg"); } #appMenu-zoom-controls2::before, #appMenu-zoom-controls::before { @@ -11166,7 +11166,7 @@ /* Browser Console */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(5), #PanelUI-developer-tools-view .subviewbutton:nth-last-child(5) { - list-style-image: url("chrome://devtools/skin/images/command-console.svg"); + list-style-image: url("../icons/command-console.svg"); } /* Responsive Design Mode */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(4), @@ -11176,7 +11176,7 @@ /* Eyedropper */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(3), #PanelUI-developer-tools-view .subviewbutton:nth-last-child(3) { - list-style-image: url("chrome://devtools/skin/images/command-eyedropper.svg"); + list-style-image: url("../icons/command-eyedropper.svg"); } /* Page Source - Edge file-search.svg */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(2), @@ -11186,7 +11186,7 @@ /* Extensions for Devel */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(1), #PanelUI-developer-tools-view .subviewbutton:nth-last-child(1) { - list-style-image: url("chrome://devtools/skin/images/debugging-addons.svg"); + list-style-image: url("chrome://mozapps/skin/extensions/extension.svg"); } #appmenu-developer-tools-view .subviewbutton:last-child { margin-bottom: 6px !important; @@ -13024,7 +13024,7 @@ --menuitem-image: url("../icons/command-frames.svg"); } #menu_browserConsole { - --menuitem-image: url("chrome://devtools/skin/images/command-console.svg"); + --menuitem-image: url("../icons/command-console.svg"); } #menu_responsiveUI { /* checkbox */ @@ -13032,13 +13032,13 @@ } #menu_eyedropper { /* checkbox */ - --menuitem-image: url("chrome://devtools/skin/images/command-eyedropper.svg"); + --menuitem-image: url("../icons/command-eyedropper.svg"); } #menu_pageSource { --menuitem-image: url("../icons/document-search.svg"); } #extensionsForDevelopers { - --menuitem-image: url("chrome://devtools/skin/images/debugging-addons.svg"); + --menuitem-image: url("chrome://mozapps/skin/extensions/extension.svg"); } /*= windowPopup ==============================================================*/ #windowPopup > menuitem[command="minimizeWindow"] { @@ -25345,7 +25345,7 @@ list-style-image: url("chrome://global/skin/icons/search-glass.svg"); } #appMenu-translate-button { - list-style-image: url(chrome://browser/skin/translations.svg); + list-style-image: url("../icons/translations.svg"); } #appMenu-zoom-controls2::before, #appMenu-zoom-controls::before { @@ -25653,7 +25653,7 @@ @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.panel") { #appmenu-developer-tools-view .subviewbutton:nth-last-child(5), #PanelUI-developer-tools-view .subviewbutton:nth-last-child(5) { - list-style-image: url("chrome://devtools/skin/images/command-console.svg"); + list-style-image: url("../icons/command-console.svg"); } } @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.panel") { @@ -25665,7 +25665,7 @@ @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.panel") { #appmenu-developer-tools-view .subviewbutton:nth-last-child(3), #PanelUI-developer-tools-view .subviewbutton:nth-last-child(3) { - list-style-image: url("chrome://devtools/skin/images/command-eyedropper.svg"); + list-style-image: url("../icons/command-eyedropper.svg"); } } @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.panel") { @@ -25677,7 +25677,7 @@ @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.panel") { #appmenu-developer-tools-view .subviewbutton:nth-last-child(1), #PanelUI-developer-tools-view .subviewbutton:nth-last-child(1) { - list-style-image: url("chrome://devtools/skin/images/debugging-addons.svg"); + list-style-image: url("chrome://mozapps/skin/extensions/extension.svg"); } } @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.panel") { @@ -28108,7 +28108,7 @@ } @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.global_menu") { #menu_browserConsole { - --menuitem-image: url("chrome://devtools/skin/images/command-console.svg"); + --menuitem-image: url("../icons/command-console.svg"); } } @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.global_menu") { @@ -28120,7 +28120,7 @@ @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.global_menu") { #menu_eyedropper { /* checkbox */ - --menuitem-image: url("chrome://devtools/skin/images/command-eyedropper.svg"); + --menuitem-image: url("../icons/command-eyedropper.svg"); } } @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.global_menu") { @@ -28130,7 +28130,7 @@ } @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.global_menu") { #extensionsForDevelopers { - --menuitem-image: url("chrome://devtools/skin/images/debugging-addons.svg"); + --menuitem-image: url("chrome://mozapps/skin/extensions/extension.svg"); } } @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.menu") and (-moz-bool-pref: "userChrome.icon.global_menu") { diff --git a/css/leptonChromeESR.css b/css/leptonChromeESR.css index 01d509da..f4008f5b 100644 --- a/css/leptonChromeESR.css +++ b/css/leptonChromeESR.css @@ -11357,7 +11357,7 @@ list-style-image: url("chrome://global/skin/icons/search-glass.svg"); } #appMenu-translate-button { - list-style-image: url(chrome://browser/skin/translations.svg); + list-style-image: url("../icons/translations.svg"); } #appMenu-zoom-controls2::before, #appMenu-zoom-controls::before { @@ -11583,7 +11583,7 @@ /* Browser Console */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(5), #PanelUI-developer-tools-view .subviewbutton:nth-last-child(5) { - list-style-image: url("chrome://devtools/skin/images/command-console.svg"); + list-style-image: url("../icons/command-console.svg"); } /* Responsive Design Mode */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(4), @@ -11593,7 +11593,7 @@ /* Eyedropper */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(3), #PanelUI-developer-tools-view .subviewbutton:nth-last-child(3) { - list-style-image: url("chrome://devtools/skin/images/command-eyedropper.svg"); + list-style-image: url("../icons/command-eyedropper.svg"); } /* Page Source - Edge file-search.svg */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(2), @@ -11603,7 +11603,7 @@ /* Extensions for Devel */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(1), #PanelUI-developer-tools-view .subviewbutton:nth-last-child(1) { - list-style-image: url("chrome://devtools/skin/images/debugging-addons.svg"); + list-style-image: url("chrome://mozapps/skin/extensions/extension.svg"); } #appmenu-developer-tools-view .subviewbutton:last-child { margin-bottom: 6px !important; @@ -13633,7 +13633,7 @@ --menuitem-image: url("../icons/command-frames.svg"); } #menu_browserConsole { - --menuitem-image: url("chrome://devtools/skin/images/command-console.svg"); + --menuitem-image: url("../icons/command-console.svg"); } #menu_responsiveUI { /* checkbox */ @@ -13641,13 +13641,13 @@ } #menu_eyedropper { /* checkbox */ - --menuitem-image: url("chrome://devtools/skin/images/command-eyedropper.svg"); + --menuitem-image: url("../icons/command-eyedropper.svg"); } #menu_pageSource { --menuitem-image: url("../icons/document-search.svg"); } #extensionsForDevelopers { - --menuitem-image: url("chrome://devtools/skin/images/debugging-addons.svg"); + --menuitem-image: url("chrome://mozapps/skin/extensions/extension.svg"); } /*= windowPopup ==============================================================*/ #windowPopup > menuitem[command="minimizeWindow"] { diff --git a/src/icons/_global_menu.scss b/src/icons/_global_menu.scss index 0c93d6f4..bb64697b 100644 --- a/src/icons/_global_menu.scss +++ b/src/icons/_global_menu.scss @@ -282,7 +282,7 @@ menu.share-tab-url-item { --menuitem-image: url("../icons/command-frames.svg"); } #menu_browserConsole { - --menuitem-image: url("chrome://devtools/skin/images/command-console.svg"); + --menuitem-image: url("../icons/command-console.svg"); } #menu_responsiveUI { /* checkbox */ @@ -290,13 +290,13 @@ menu.share-tab-url-item { } #menu_eyedropper { /* checkbox */ - --menuitem-image: url("chrome://devtools/skin/images/command-eyedropper.svg"); + --menuitem-image: url("../icons/command-eyedropper.svg"); } #menu_pageSource { --menuitem-image: url("../icons/document-search.svg"); } #extensionsForDevelopers { - --menuitem-image: url("chrome://devtools/skin/images/debugging-addons.svg"); + --menuitem-image: url("chrome://mozapps/skin/extensions/extension.svg"); } /*= windowPopup ==============================================================*/ diff --git a/src/icons/_panel.scss b/src/icons/_panel.scss index 2b0a8594..c334e99e 100644 --- a/src/icons/_panel.scss +++ b/src/icons/_panel.scss @@ -99,7 +99,7 @@ list-style-image: url("chrome://global/skin/icons/search-glass.svg"); } #appMenu-translate-button { - list-style-image: url(chrome://browser/skin/translations.svg); + list-style-image: url("../icons/translations.svg"); } #appMenu-zoom-controls2::before, /* Legacy v104 */ #appMenu-zoom-controls::before { @@ -340,7 +340,7 @@ panelMenuBookmarkThisPage[starred] { /* Browser Console */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(5), #PanelUI-developer-tools-view .subviewbutton:nth-last-child(5) { - list-style-image: url("chrome://devtools/skin/images/command-console.svg"); + list-style-image: url("../icons/command-console.svg"); } /* Responsive Design Mode */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(4), @@ -350,7 +350,7 @@ panelMenuBookmarkThisPage[starred] { /* Eyedropper */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(3), #PanelUI-developer-tools-view .subviewbutton:nth-last-child(3) { - list-style-image: url("chrome://devtools/skin/images/command-eyedropper.svg"); + list-style-image: url("../icons/command-eyedropper.svg"); } /* Page Source - Edge file-search.svg */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(2), @@ -360,7 +360,7 @@ panelMenuBookmarkThisPage[starred] { /* Extensions for Devel */ #appmenu-developer-tools-view .subviewbutton:nth-last-child(1), #PanelUI-developer-tools-view .subviewbutton:nth-last-child(1) { - list-style-image: url("chrome://devtools/skin/images/debugging-addons.svg"); + list-style-image: url("chrome://mozapps/skin/extensions/extension.svg"); } #appmenu-developer-tools-view .subviewbutton:last-child { margin-bottom: 6px !important;