From 371db499ff0b92b7a6c2abf7a8975aea9b8a54ac Mon Sep 17 00:00:00 2001 From: Alex Catarineu Date: Fri, 4 Oct 2019 19:08:33 +0200 Subject: [PATCH] Bug 27511: Add new identity button to toolbar Also added 'New circuit for this site' button to CustomizableUI, but not visible by default. --- browser/base/content/browser.xul | 10 +++++++++ .../customizableui/CustomizableUI.jsm | 21 +++++++++++++++++++ browser/themes/shared/icons/new_circuit.svg | 8 +++++++ browser/themes/shared/icons/new_identity.svg | 9 ++++++++ browser/themes/shared/jar.inc.mn | 3 +++ browser/themes/shared/menupanel.inc.css | 8 +++++++ .../themes/shared/toolbarbutton-icons.inc.css | 8 +++++++ 7 files changed, 67 insertions(+) create mode 100644 browser/themes/shared/icons/new_circuit.svg create mode 100644 browser/themes/shared/icons/new_identity.svg diff --git a/browser/base/content/browser.xul b/browser/base/content/browser.xul index 42c0d2d47397a..8e47fd36fb751 100644 --- a/browser/base/content/browser.xul +++ b/browser/base/content/browser.xul @@ -1206,6 +1206,16 @@ ondragenter="newWindowButtonObserver.onDragOver(event)" ondragexit="newWindowButtonObserver.onDragExit(event)"/> + + + + + + Icon / New Circuit@1.5x + + + + + diff --git a/browser/themes/shared/icons/new_identity.svg b/browser/themes/shared/icons/new_identity.svg new file mode 100644 index 0000000000000..91d5b35f7e80b --- /dev/null +++ b/browser/themes/shared/icons/new_identity.svg @@ -0,0 +1,9 @@ + + + New Identity Icon + + + + + + \ No newline at end of file diff --git a/browser/themes/shared/jar.inc.mn b/browser/themes/shared/jar.inc.mn index ecdfd25aa7a31..1d0f9a455ad0a 100644 --- a/browser/themes/shared/jar.inc.mn +++ b/browser/themes/shared/jar.inc.mn @@ -270,3 +270,6 @@ skin/classic/browser/privatebrowsing/favicon.svg (../shared/privatebrowsing/favicon.svg) skin/classic/browser/privatebrowsing/private-browsing.svg (../shared/privatebrowsing/private-browsing.svg) skin/classic/browser/privatebrowsing/tracking-protection.svg (../shared/privatebrowsing/tracking-protection.svg) + + skin/classic/browser/new_circuit.svg (../shared/icons/new_circuit.svg) + skin/classic/browser/new_identity.svg (../shared/icons/new_identity.svg) diff --git a/browser/themes/shared/menupanel.inc.css b/browser/themes/shared/menupanel.inc.css index 2fe9bdd79438f..268315240d9a2 100644 --- a/browser/themes/shared/menupanel.inc.css +++ b/browser/themes/shared/menupanel.inc.css @@ -161,3 +161,11 @@ toolbarpaletteitem[place="palette"] > #bookmarks-menu-button, #appMenu-library-downloads-show-button { list-style-image: url("chrome://browser/skin/folder.svg"); } + +#appMenuNewIdentity { + list-style-image: url("chrome://browser/skin/new_identity.svg"); +} + +#appMenuNewCircuit { + list-style-image: url("chrome://browser/skin/new_circuit.svg"); +} \ No newline at end of file diff --git a/browser/themes/shared/toolbarbutton-icons.inc.css b/browser/themes/shared/toolbarbutton-icons.inc.css index 1c6c03cf26da3..b843aa37daade 100644 --- a/browser/themes/shared/toolbarbutton-icons.inc.css +++ b/browser/themes/shared/toolbarbutton-icons.inc.css @@ -227,6 +227,14 @@ toolbar[brighttext] { list-style-image: url("chrome://browser/skin/new-tab.svg"); } +#new-identity-button { + list-style-image: url("chrome://browser/skin/new_identity.svg"); +} + +#new-circuit-button { + list-style-image: url("chrome://browser/skin/new_circuit.svg"); +} + #privatebrowsing-button { list-style-image: url("chrome://browser/skin/privateBrowsing.svg"); } -- GitLab