diff --git a/src/browser/app/profile/zen-browser.js b/src/browser/app/profile/zen-browser.js index 5d974e55..22d6805c 100644 --- a/src/browser/app/profile/zen-browser.js +++ b/src/browser/app/profile/zen-browser.js @@ -118,6 +118,7 @@ pref('zen.view.compact.animate-sidebar', true); pref('zen.view.compact.show-sidebar-and-toolbar-on-hover', true); pref('zen.urlbar.replace-newtab', true); +pref('zen.urlbar.show-protections-icon', false); pref('zen.urlbar.behavior', 'floating-on-type'); // default, floating-on-type, float pref('zen.urlbar.wait-to-clear', 45000); // in ms (default 45s) pref('zen.urlbar.show-domain-only-in-sidebar', true); diff --git a/src/browser/base/content/zen-styles/zen-urlbar.css b/src/browser/base/content/zen-styles/zen-urlbar.css index 568790c0..064bfb6b 100644 --- a/src/browser/base/content/zen-styles/zen-urlbar.css +++ b/src/browser/base/content/zen-styles/zen-urlbar.css @@ -16,6 +16,10 @@ --urlbarView-highlight-background: var(--toolbarbutton-hover-background); border-radius: var(--toolbarbutton-border-radius); padding: 1px; + + :root:not([zen-single-toolbar='true']) &[zen-floating-urlbar='true'] { + --urlbar-container-padding: 2px !important; + } } .urlbar-input::placeholder { @@ -90,6 +94,12 @@ justify-content: center !important; align-items: center !important; margin: 0; + + :root[zen-single-toolbar='true'] & { + padding: 6px !important; + width: unset !important; + height: unset !important; + } } #tracking-protection-icon-container { @@ -454,6 +464,12 @@ button.popup-notification-dropmarker { } } +@media not (-moz-bool-pref: 'zen.urlbar.show-protections-icon') { + #tracking-protection-icon-container { + display: none !important; + } +} + /* Code ~~stolen~~ taken inspiration from https://github.com/greeeen-dev/zen-arc-cmd-bar * * MIT License