diff --git a/browser/themes/linux/jar.mn b/browser/themes/linux/jar.mn index 8bed6139aa93..c63405aa652f 100644 --- a/browser/themes/linux/jar.mn +++ b/browser/themes/linux/jar.mn @@ -301,8 +301,7 @@ browser.jar: * skin/classic/browser/devtools/ruleview.css (../shared/devtools/ruleview.css) * skin/classic/browser/devtools/webconsole.css (devtools/webconsole.css) skin/classic/browser/devtools/webconsole_networkpanel.css (devtools/webconsole_networkpanel.css) - skin/classic/browser/devtools/webconsole.png (../shared/devtools/images/webconsole.png) - skin/classic/browser/devtools/webconsole@2x.png (../shared/devtools/images/webconsole@2x.png) + skin/classic/browser/devtools/webconsole.svg (../shared/devtools/images/webconsole.svg) skin/classic/browser/devtools/commandline.css (../shared/devtools/commandline.css) skin/classic/browser/devtools/markup-view.css (../shared/devtools/markup-view.css) skin/classic/browser/devtools/editor-error.png (../shared/devtools/images/editor-error.png) diff --git a/browser/themes/osx/jar.mn b/browser/themes/osx/jar.mn index 3b17ceda5850..d040c14343bb 100644 --- a/browser/themes/osx/jar.mn +++ b/browser/themes/osx/jar.mn @@ -419,8 +419,7 @@ browser.jar: skin/classic/browser/devtools/editor-debug-location@2x.png (../shared/devtools/images/editor-debug-location@2x.png) * skin/classic/browser/devtools/webconsole.css (devtools/webconsole.css) skin/classic/browser/devtools/webconsole_networkpanel.css (devtools/webconsole_networkpanel.css) - skin/classic/browser/devtools/webconsole.png (../shared/devtools/images/webconsole.png) - skin/classic/browser/devtools/webconsole@2x.png (../shared/devtools/images/webconsole@2x.png) + skin/classic/browser/devtools/webconsole.svg (../shared/devtools/images/webconsole.svg) skin/classic/browser/devtools/breadcrumbs-divider@2x.png (../shared/devtools/images/breadcrumbs-divider@2x.png) skin/classic/browser/devtools/breadcrumbs-scrollbutton.png (../shared/devtools/images/breadcrumbs-scrollbutton.png) skin/classic/browser/devtools/breadcrumbs-scrollbutton@2x.png (../shared/devtools/images/breadcrumbs-scrollbutton@2x.png) diff --git a/browser/themes/shared/devtools/images/webconsole.png b/browser/themes/shared/devtools/images/webconsole.png deleted file mode 100644 index 8aee79015710..000000000000 Binary files a/browser/themes/shared/devtools/images/webconsole.png and /dev/null differ diff --git a/browser/themes/shared/devtools/images/webconsole.svg b/browser/themes/shared/devtools/images/webconsole.svg new file mode 100644 index 000000000000..6c21e549e904 --- /dev/null +++ b/browser/themes/shared/devtools/images/webconsole.svg @@ -0,0 +1,101 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/browser/themes/shared/devtools/images/webconsole@2x.png b/browser/themes/shared/devtools/images/webconsole@2x.png deleted file mode 100644 index 2d5e97f8815e..000000000000 Binary files a/browser/themes/shared/devtools/images/webconsole@2x.png and /dev/null differ diff --git a/browser/themes/shared/devtools/performance.inc.css b/browser/themes/shared/devtools/performance.inc.css index 933e92b154b2..3f45e2e5a777 100644 --- a/browser/themes/shared/devtools/performance.inc.css +++ b/browser/themes/shared/devtools/performance.inc.css @@ -639,25 +639,24 @@ menuitem.marker-color-graphs-blue:before, #jit-optimizations-view .opt-icon::before { content: ""; - background-image: url(chrome://browser/skin/devtools/webconsole.png); + background-image: url(chrome://browser/skin/devtools/webconsole.svg); background-repeat: no-repeat; - background-size: 48px 40px; - margin: 5px 6px 0 0; - width: 8px; - height: 8px; - max-height: 8px; + background-size: 72px 60px; + width: 12px; + height: 12px; display: inline-block; + + margin: 5px 6px 0 0; + max-height: 12px; +} +.theme-light #jit-optimizations-view .opt-icon::before { + background-image: url(chrome://browser/skin/devtools/webconsole.svg#light-icons); } #jit-optimizations-view .opt-icon[severity=warning]::before { - background-position: -16px -16px; + background-position: -24px -24px; } -@media (min-resolution: 1.25dppx) { - #jit-optimizations-view .opt-icon::before { - background-image: url(chrome://browser/skin/devtools/webconsole@2x.png); - } -} /** * Configurable Options @@ -671,21 +670,21 @@ menuitem.marker-color-graphs-blue:before, */ menuitem.experimental-option::before { content: ""; - background-image: url(chrome://browser/skin/devtools/webconsole.png); + background-image: url(chrome://browser/skin/devtools/webconsole.svg); background-repeat: no-repeat; - background-size: 48px 40px; - margin: 2px 5px 0 0; - width: 8px; - height: 8px; - max-height: 8px; + background-size: 72px 60px; + width: 12px; + height: 12px; display: inline-block; - background-position: -16px -16px; + + background-position: -24px -24px; + margin: 2px 5px 0 0; + max-height: 12px; } -@media (min-resolution: 1.25dppx) { - menuitem.experimental-option::before { - background-image: url(chrome://browser/skin/devtools/webconsole@2x.png); - } +.theme-light menuitem.experimental-option::before { + background-image: url(chrome://browser/skin/devtools/webconsole.svg#light-icons); } + #performance-options-menupopup:not(.experimental-enabled) .experimental-option, #performance-options-menupopup:not(.experimental-enabled) .experimental-option::before { display: none; diff --git a/browser/themes/shared/devtools/webconsole.inc.css b/browser/themes/shared/devtools/webconsole.inc.css index 5d315bb249b5..16b70853d8bd 100644 --- a/browser/themes/shared/devtools/webconsole.inc.css +++ b/browser/themes/shared/devtools/webconsole.inc.css @@ -44,19 +44,17 @@ a { .message > .icon::before { content: ""; - background-image: url(chrome://browser/skin/devtools/webconsole.png); - background-position: 8px 8px; + background-image: url(chrome://browser/skin/devtools/webconsole.svg); + background-position: 12px 12px; background-repeat: no-repeat; - background-size: 48px 40px; - width: 8px; - height: 8px; + background-size: 72px 60px; + width: 12px; + height: 12px; display: inline-block; } -@media (min-resolution: 1.25dppx) { - .message > .icon::before { - background-image: url(chrome://browser/skin/devtools/webconsole@2x.png); - } +.theme-light .message > .icon::before { + background-image: url(chrome://browser/skin/devtools/webconsole.svg#light-icons); } .message > .message-body-wrapper { @@ -228,7 +226,7 @@ a { } .message[category=network][severity=error] > .icon::before { - background-position: -8px 0; + background-position: -12px 0; } .message[category=network] > .message-body { @@ -285,11 +283,11 @@ a { } .message[category=cssparser][severity=error] > .icon::before { - background-position: -8px -8px; + background-position: -12px -12px; } .message[category=cssparser][severity=warn] > .icon::before { - background-position: -16px -8px; + background-position: -24px -12px; } /* JS styles */ @@ -303,11 +301,11 @@ a { } .message[category=exception][severity=error] > .icon::before { - background-position: -8px -16px; + background-position: -12px -24px; } .message[category=exception][severity=warn] > .icon::before { - background-position: -16px -16px; + background-position: -24px -24px; } /* Web Developer styles */ @@ -322,15 +320,15 @@ a { .message[category=console][severity=error] > .icon::before, .message[category=output][severity=error] > .icon::before { - background-position: -8px -24px; + background-position: -12px -36px; } .message[category=console][severity=warn] > .icon::before { - background-position: -16px -24px; + background-position: -24px -36px; } .message[category=console][severity=info] > .icon::before { - background-position: -24px -24px; + background-position: -36px -36px; } /* Input and output styles */ @@ -340,11 +338,11 @@ a { } .message[category=input] > .icon::before { - background-position: -32px -24px; + background-position: -48px -36px; } .message[category=output] > .icon::before { - background-position: -40px -24px; + background-position: -60px -36px; } /* JSTerm Styles */ @@ -411,11 +409,11 @@ a { } .message[category=security][severity=error] > .icon::before { - background-position: -8px -32px; + background-position: -12px -48px; } .message[category=security][severity=warn] > .icon::before { - background-position: -16px -32px; + background-position: -24px -48px; } .navigation-marker { diff --git a/browser/themes/windows/jar.mn b/browser/themes/windows/jar.mn index 0eda1d7d7088..a543f31c1c1a 100644 --- a/browser/themes/windows/jar.mn +++ b/browser/themes/windows/jar.mn @@ -400,8 +400,7 @@ browser.jar: skin/classic/browser/devtools/editor-debug-location@2x.png (../shared/devtools/images/editor-debug-location@2x.png) * skin/classic/browser/devtools/webconsole.css (devtools/webconsole.css) skin/classic/browser/devtools/webconsole_networkpanel.css (devtools/webconsole_networkpanel.css) - skin/classic/browser/devtools/webconsole.png (../shared/devtools/images/webconsole.png) - skin/classic/browser/devtools/webconsole@2x.png (../shared/devtools/images/webconsole@2x.png) + skin/classic/browser/devtools/webconsole.svg (../shared/devtools/images/webconsole.svg) skin/classic/browser/devtools/breadcrumbs-divider@2x.png (../shared/devtools/images/breadcrumbs-divider@2x.png) skin/classic/browser/devtools/breadcrumbs-scrollbutton.png (../shared/devtools/images/breadcrumbs-scrollbutton.png) skin/classic/browser/devtools/breadcrumbs-scrollbutton@2x.png (../shared/devtools/images/breadcrumbs-scrollbutton@2x.png)