Fix: Icons - Performance icon replace #918

This commit is contained in:
alstjr7375 2024-06-19 01:12:30 +09:00
parent 036918bed9
commit 5861dbaaf4
6 changed files with 63 additions and 4 deletions

10
css/leptonChrome.css generated
View file

@ -13436,6 +13436,11 @@
#translations-button-icon { #translations-button-icon {
list-style-image: url("../icons/translations.svg") !important; 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 ***************************************************/ /** Icons for fork browsers ***************************************************/
/*= Waterfox =================================================================*/ /*= Waterfox =================================================================*/
@ -28886,6 +28891,11 @@
#translations-button-icon { #translations-button-icon {
list-style-image: url("../icons/translations.svg") !important; 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") { @media (not (-moz-bool-pref: "userChrome.icon.disabled")) and (-moz-bool-pref: "userChrome.icon.panel") {
#appMenu-restart-button { #appMenu-restart-button {

View file

@ -14067,6 +14067,11 @@
#translations-button-icon { #translations-button-icon {
list-style-image: url("../icons/translations.svg") !important; 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 ***************************************************/ /** Icons for fork browsers ***************************************************/
/*= Waterfox =================================================================*/ /*= Waterfox =================================================================*/

18
css/leptonContent.css generated
View file

@ -2228,6 +2228,14 @@
{ {
background-image: url("../icons/link.svg") !important; 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 =============================*/ /*= chrome://browser/content/places/places.xhtml =============================*/
@-moz-document url("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; 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") { @media (-moz-bool-pref: "userContent.page.proton") {

View file

@ -2231,6 +2231,14 @@
{ {
background-image: url("../icons/link.svg") !important; 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 =============================*/ /*= chrome://browser/content/places/places.xhtml =============================*/
@-moz-document url("chrome://browser/content/places/places.xhtml") @-moz-document url("chrome://browser/content/places/places.xhtml")

View file

@ -2,4 +2,15 @@
td.type.favicon[style*='background-image: url("chrome://global/skin/icons/link.svg");'] { td.type.favicon[style*='background-image: url("chrome://global/skin/icons/link.svg");'] {
background-image: url("../icons/link.svg") !important; 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;
}
}

View file

@ -7,3 +7,10 @@
#translations-button-icon { #translations-button-icon {
list-style-image: url("../icons/translations.svg") !important; 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;
}