From 5861dbaaf4e5e6671cb230ef7da0b3ae4e7d49d1 Mon Sep 17 00:00:00 2001 From: alstjr7375 Date: Wed, 19 Jun 2024 01:12:30 +0900 Subject: [PATCH] Fix: Icons - Performance icon replace #918 --- css/leptonChrome.css | 10 ++++++++++ css/leptonChromeESR.css | 5 +++++ css/leptonContent.css | 18 ++++++++++++++++++ css/leptonContentESR.css | 8 ++++++++ .../proton_contents/_about_processes.scss | 11 +++++++++++ src/icons/_1.25px_stroke.scss | 15 +++++++++++---- 6 files changed, 63 insertions(+), 4 deletions(-) diff --git a/css/leptonChrome.css b/css/leptonChrome.css index 27cac149..92a7af86 100644 --- a/css/leptonChrome.css +++ b/css/leptonChrome.css @@ -13436,6 +13436,11 @@ #translations-button-icon { list-style-image: url("../icons/translations.svg") !important; } + .tabbrowser-tab:is([image="chrome://global/skin/icons/performance.svg"], + [image="chrome://devtools/skin/images/tool-profiler.svg"]) .tab-icon-image + { + content: url("../icons/performance.svg") !important; + } } /** Icons for fork browsers ***************************************************/ /*= Waterfox =================================================================*/ @@ -28886,6 +28891,11 @@ #translations-button-icon { list-style-image: url("../icons/translations.svg") !important; } + .tabbrowser-tab:is([image="chrome://global/skin/icons/performance.svg"], + [image="chrome://devtools/skin/images/tool-profiler.svg"]) .tab-icon-image + { + content: url("../icons/performance.svg") !important; + } } @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.panel") { #appMenu-restart-button { diff --git a/css/leptonChromeESR.css b/css/leptonChromeESR.css index 69b41de4..133c30f0 100644 --- a/css/leptonChromeESR.css +++ b/css/leptonChromeESR.css @@ -14067,6 +14067,11 @@ #translations-button-icon { list-style-image: url("../icons/translations.svg") !important; } + .tabbrowser-tab:is([image="chrome://global/skin/icons/performance.svg"], + [image="chrome://devtools/skin/images/tool-profiler.svg"]) .tab-icon-image + { + content: url("../icons/performance.svg") !important; + } } /** Icons for fork browsers ***************************************************/ /*= Waterfox =================================================================*/ diff --git a/css/leptonContent.css b/css/leptonContent.css index 1ef6004a..2eb7f10e 100644 --- a/css/leptonContent.css +++ b/css/leptonContent.css @@ -2228,6 +2228,14 @@ { background-image: url("../icons/link.svg") !important; } + .profiler-icon { + background: url("../icons/performance.svg") no-repeat center !important; + } + } + @-moz-document url-prefix("about:profiling") { + .perf-intro-icon { + background-image: url("../icons/performance.svg") !important; + } } /*= chrome://browser/content/places/places.xhtml =============================*/ @-moz-document url("chrome://browser/content/places/places.xhtml") @@ -5889,6 +5897,16 @@ { background-image: url("../icons/link.svg") !important; } + .profiler-icon { + background: url("../icons/performance.svg") no-repeat center !important; + } + } +} +@media (-moz-bool-pref: "userContent.page.proton") { + @-moz-document url-prefix("about:profiling") { + .perf-intro-icon { + background-image: url("../icons/performance.svg") !important; + } } } @media (-moz-bool-pref: "userContent.page.proton") { diff --git a/css/leptonContentESR.css b/css/leptonContentESR.css index fd6c0486..afe64865 100644 --- a/css/leptonContentESR.css +++ b/css/leptonContentESR.css @@ -2231,6 +2231,14 @@ { background-image: url("../icons/link.svg") !important; } + .profiler-icon { + background: url("../icons/performance.svg") no-repeat center !important; + } + } + @-moz-document url-prefix("about:profiling") { + .perf-intro-icon { + background-image: url("../icons/performance.svg") !important; + } } /*= chrome://browser/content/places/places.xhtml =============================*/ @-moz-document url("chrome://browser/content/places/places.xhtml") diff --git a/src/contents/proton_contents/_about_processes.scss b/src/contents/proton_contents/_about_processes.scss index 0efd5963..7d52b322 100644 --- a/src/contents/proton_contents/_about_processes.scss +++ b/src/contents/proton_contents/_about_processes.scss @@ -2,4 +2,15 @@ td.type.favicon[style*='background-image: url("chrome://global/skin/icons/link.svg");'] { background-image: url("../icons/link.svg") !important; } + + .profiler-icon { + background: url("../icons/performance.svg") no-repeat center !important; + } +} + +@include moz-document(url-prefix "about:profiling") { + .perf-intro-icon { + background-image: url("../icons/performance.svg") !important; + } } + diff --git a/src/icons/_1.25px_stroke.scss b/src/icons/_1.25px_stroke.scss index 0e0a03ce..21cf3495 100644 --- a/src/icons/_1.25px_stroke.scss +++ b/src/icons/_1.25px_stroke.scss @@ -1,9 +1,16 @@ #firefox-view-button { - list-style-image: url("../icons/firefox-view.svg") !important; + list-style-image: url("../icons/firefox-view.svg") !important; } #reset-pbm-toolbar-button { - list-style-image: url("../icons/flame.svg") !important; + list-style-image: url("../icons/flame.svg") !important; } #translations-button-icon { - list-style-image: url("../icons/translations.svg") !important; -} \ No newline at end of file + list-style-image: url("../icons/translations.svg") !important; +} + +.tabbrowser-tab:is( + [image="chrome://global/skin/icons/performance.svg"], + [image="chrome://devtools/skin/images/tool-profiler.svg"] +) .tab-icon-image { + content: url("../icons/performance.svg") !important; +}