Bug 1697219 - Use a fully colored branding icon in the identity box. r=harry,desktop-theme-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D107739
This commit is contained in:
Marco Bonardo 2021-03-10 20:31:57 +00:00
Родитель 67916cbae2
Коммит bfe230a5dc
2 изменённых файлов: 16 добавлений и 1 удалений

Просмотреть файл

@ -35,7 +35,11 @@ const TEST_CASES = [
{
type: "chrome about page",
testURL: "about:preferences",
img_url: `url("chrome://branding/content/identity-icons-brand.svg")`,
img_url: UrlbarPrefs.get("browser.proton.urlbar.enabled")
? `url("chrome://branding/content/icon${
window.devicePixelRatio > 1 ? 32 : 16
}.png")`
: `url("chrome://branding/content/identity-icons-brand.svg")`,
},
{
type: "file",

Просмотреть файл

@ -204,9 +204,20 @@
list-style-image: url(chrome://global/skin/icons/identity-icon.svg);
}
#identity-box[pageproxystate="valid"].chromeUI #identity-icon {
list-style-image: url(chrome://branding/content/icon16.png);
}
@media (min-resolution: 1.1dppx) {
#identity-box[pageproxystate="valid"].chromeUI #identity-icon {
list-style-image: url(chrome://branding/content/icon32.png);
}
}
@supports not -moz-bool-pref("browser.proton.urlbar.enabled") {
#identity-box[pageproxystate="valid"].chromeUI #identity-icon {
list-style-image: url(chrome://branding/content/identity-icons-brand.svg);
}
} /*** END !proton ***/
#identity-box[pageproxystate="valid"].localResource #identity-icon {
list-style-image: url(chrome://global/skin/icons/document.svg);