From f5e3ce143c51d6cf453e3fcd6445879456de8f24 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Mon, 1 Jul 2024 15:46:18 +0900 Subject: [PATCH] Add: Icons - Duplicate close tabs #903 --- css/leptonChrome.css | 22 ++++++++++++++++++++++ css/leptonChromeESR.css | 10 ++++++++++ src/icons/_index.scss | 2 ++ src/icons/_panel.scss | 3 +++ src/icons/context_menu/_tab_toolbar.scss | 5 +++++ 5 files changed, 42 insertions(+) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index c12f77c8..541c0921 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -10748,6 +10748,7 @@ --uc-tab-copy-icon: url("../icons/tab-copy.svg"); --uc-tab-unload-icon: url("../icons/tab-unload.svg"); --uc-tab-multiple-icon: url("../icons/tab-desktop-multiple.svg"); + --uc-tab-close-duplicate-icon: url("../icons/close-duplicate-tabs.svg"); --uc-new-tab-icon: url("../icons/new-tab.svg"); --uc-new-tab-forward-icon: url("../icons/new-tab-forward.svg"); --uc-new-tab-skip-forward-icon: url("../icons/new-tab-skip-forward.svg"); @@ -10766,6 +10767,7 @@ --uc-tab-copy-icon: url("../icons/tab-copy-photon.svg"); --uc-tab-unload-icon: url("../icons/tab-unload-photon.svg"); --uc-tab-multiple-icon: url("../icons/tab-multiple.svg"); + --uc-tab-close-duplicate-icon: url("../icons/close-duplicate-tabs-photon.svg"); --uc-new-tab-icon: url("../icons/new-tab-photon.svg"); --uc-new-tab-forward-icon: url("../icons/new-tab-forward-photon.svg"); --uc-new-tab-skip-forward-icon: url("../icons/new-tab-skip-forward-photon.svg"); @@ -11480,6 +11482,9 @@ #allTabsMenu-searchTabs { list-style-image: url("chrome://global/skin/icons/search-glass.svg"); } + #allTabsMenu-closeDuplicateTabs { + list-style-image: var(--uc-tab-close-duplicate-icon); + } #allTabsMenu-containerTabsButton { list-style-image: url("../icons/container-openin-16.svg"); } @@ -12222,6 +12227,11 @@ #sidebartabs_asamuzak_jp-menuitem-_closeTab { --menuitem-image: url("chrome://global/skin/icons/close.svg"); } + @supports -moz-bool-pref("userChrome.icon.menu.full") { + #context_closeDuplicateTabs { + --menuitem-image: var(--uc-tab-close-duplicate-icon); + } + } @supports -moz-bool-pref("userChrome.icon.menu.full") { #context_closeTabOptions, #treestyletab_piro_sakura_ne_jp-menuitem-_context_closeMultipleTabs, @@ -25371,6 +25381,7 @@ --uc-tab-copy-icon: url("../icons/tab-copy.svg"); --uc-tab-unload-icon: url("../icons/tab-unload.svg"); --uc-tab-multiple-icon: url("../icons/tab-desktop-multiple.svg"); + --uc-tab-close-duplicate-icon: url("../icons/close-duplicate-tabs.svg"); --uc-new-tab-icon: url("../icons/new-tab.svg"); --uc-new-tab-forward-icon: url("../icons/new-tab-forward.svg"); --uc-new-tab-skip-forward-icon: url("../icons/new-tab-skip-forward.svg"); @@ -25398,6 +25409,7 @@ --uc-tab-copy-icon: url("../icons/tab-copy-photon.svg"); --uc-tab-unload-icon: url("../icons/tab-unload-photon.svg"); --uc-tab-multiple-icon: url("../icons/tab-multiple.svg"); + --uc-tab-close-duplicate-icon: url("../icons/close-duplicate-tabs-photon.svg"); --uc-new-tab-icon: url("../icons/new-tab-photon.svg"); --uc-new-tab-forward-icon: url("../icons/new-tab-forward-photon.svg"); --uc-new-tab-skip-forward-icon: url("../icons/new-tab-skip-forward-photon.svg"); @@ -26320,6 +26332,11 @@ list-style-image: url("chrome://global/skin/icons/search-glass.svg"); } } +@media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.panel") { + #allTabsMenu-closeDuplicateTabs { + list-style-image: var(--uc-tab-close-duplicate-icon); + } +} @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.panel") { #allTabsMenu-containerTabsButton { list-style-image: url("../icons/container-openin-16.svg"); @@ -27134,6 +27151,11 @@ --menuitem-image: url("chrome://global/skin/icons/close.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_closeDuplicateTabs { + --menuitem-image: var(--uc-tab-close-duplicate-icon); + } +} @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_closeTabOptions, #treestyletab_piro_sakura_ne_jp-menuitem-_context_closeMultipleTabs, diff --git a/css/leptonChromeESR.css b/css/leptonChromeESR.css index 743c78cd..394537d9 100644 --- a/css/leptonChromeESR.css +++ b/css/leptonChromeESR.css @@ -11186,6 +11186,7 @@ --uc-tab-copy-icon: url("../icons/tab-copy.svg"); --uc-tab-unload-icon: url("../icons/tab-unload.svg"); --uc-tab-multiple-icon: url("../icons/tab-desktop-multiple.svg"); + --uc-tab-close-duplicate-icon: url("../icons/close-duplicate-tabs.svg"); --uc-new-tab-icon: url("../icons/new-tab.svg"); --uc-new-tab-forward-icon: url("../icons/new-tab-forward.svg"); --uc-new-tab-skip-forward-icon: url("../icons/new-tab-skip-forward.svg"); @@ -11204,6 +11205,7 @@ --uc-tab-copy-icon: url("../icons/tab-copy-photon.svg"); --uc-tab-unload-icon: url("../icons/tab-unload-photon.svg"); --uc-tab-multiple-icon: url("../icons/tab-multiple.svg"); + --uc-tab-close-duplicate-icon: url("../icons/close-duplicate-tabs-photon.svg"); --uc-new-tab-icon: url("../icons/new-tab-photon.svg"); --uc-new-tab-forward-icon: url("../icons/new-tab-forward-photon.svg"); --uc-new-tab-skip-forward-icon: url("../icons/new-tab-skip-forward-photon.svg"); @@ -11918,6 +11920,9 @@ #allTabsMenu-searchTabs { list-style-image: url("chrome://global/skin/icons/search-glass.svg"); } + #allTabsMenu-closeDuplicateTabs { + list-style-image: var(--uc-tab-close-duplicate-icon); + } #allTabsMenu-containerTabsButton { list-style-image: url("../icons/container-openin-16.svg"); } @@ -12850,6 +12855,11 @@ #sidebartabs_asamuzak_jp-menuitem-_closeTab { --menuitem-image: url("chrome://global/skin/icons/close.svg"); } + @supports -moz-bool-pref("userChrome.icon.menu.full") { + #context_closeDuplicateTabs { + --menuitem-image: var(--uc-tab-close-duplicate-icon); + } + } @supports -moz-bool-pref("userChrome.icon.menu.full") { #context_closeTabOptions, #treestyletab_piro_sakura_ne_jp-menuitem-_context_closeMultipleTabs, diff --git a/src/icons/_index.scss b/src/icons/_index.scss index 60dce9ed..bbf079a0 100644 --- a/src/icons/_index.scss +++ b/src/icons/_index.scss @@ -7,6 +7,7 @@ --uc-tab-copy-icon: url("../icons/tab-copy.svg"); --uc-tab-unload-icon: url("../icons/tab-unload.svg"); --uc-tab-multiple-icon: url("../icons/tab-desktop-multiple.svg"); + --uc-tab-close-duplicate-icon: url("../icons/close-duplicate-tabs.svg"); --uc-new-tab-icon: url("../icons/new-tab.svg"); --uc-new-tab-forward-icon: url("../icons/new-tab-forward.svg"); --uc-new-tab-skip-forward-icon: url("../icons/new-tab-skip-forward.svg"); @@ -16,6 +17,7 @@ --uc-tab-copy-icon: url("../icons/tab-copy-photon.svg"); --uc-tab-unload-icon: url("../icons/tab-unload-photon.svg"); --uc-tab-multiple-icon: url("../icons/tab-multiple.svg"); + --uc-tab-close-duplicate-icon: url("../icons/close-duplicate-tabs-photon.svg"); --uc-new-tab-icon: url("../icons/new-tab-photon.svg"); --uc-new-tab-forward-icon: url("../icons/new-tab-forward-photon.svg"); --uc-new-tab-skip-forward-icon: url("../icons/new-tab-skip-forward-photon.svg"); diff --git a/src/icons/_panel.scss b/src/icons/_panel.scss index 2836b3db..e276e4b6 100644 --- a/src/icons/_panel.scss +++ b/src/icons/_panel.scss @@ -439,6 +439,9 @@ panelMenuBookmarkThisPage[starred] { #allTabsMenu-searchTabs { list-style-image: url("chrome://global/skin/icons/search-glass.svg"); } +#allTabsMenu-closeDuplicateTabs { + list-style-image: var(--uc-tab-close-duplicate-icon); +} #allTabsMenu-containerTabsButton { list-style-image: url("../icons/container-openin-16.svg"); } diff --git a/src/icons/context_menu/_tab_toolbar.scss b/src/icons/context_menu/_tab_toolbar.scss index a5ce5e30..2488d3b7 100644 --- a/src/icons/context_menu/_tab_toolbar.scss +++ b/src/icons/context_menu/_tab_toolbar.scss @@ -121,6 +121,11 @@ #sidebartabs_asamuzak_jp-menuitem-_closeTab { --menuitem-image: url("chrome://global/skin/icons/close.svg"); } +#context_closeDuplicateTabs { + @include Option("userChrome.icon.menu.full") { + --menuitem-image: var(--uc-tab-close-duplicate-icon); + } +} #context_closeTabOptions, #treestyletab_piro_sakura_ne_jp-menuitem-_context_closeMultipleTabs, #tabcenter-reborn_ariasuni-menuitem-_contextMenuCloseTabs,