1
0
Fork 1
mirror of https://github.com/zen-browser/desktop.git synced 2025-07-10 00:55:30 +02:00

Add option to hide tracking protection icon in URL bar

This commit is contained in:
mr. m 2025-03-11 23:29:21 +01:00
parent 6d458d3b16
commit 110d4e10bb
No known key found for this signature in database
GPG key ID: 419302196C23B258
2 changed files with 17 additions and 0 deletions

View file

@ -118,6 +118,7 @@ pref('zen.view.compact.animate-sidebar', true);
pref('zen.view.compact.show-sidebar-and-toolbar-on-hover', true); pref('zen.view.compact.show-sidebar-and-toolbar-on-hover', true);
pref('zen.urlbar.replace-newtab', 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.behavior', 'floating-on-type'); // default, floating-on-type, float
pref('zen.urlbar.wait-to-clear', 45000); // in ms (default 45s) pref('zen.urlbar.wait-to-clear', 45000); // in ms (default 45s)
pref('zen.urlbar.show-domain-only-in-sidebar', true); pref('zen.urlbar.show-domain-only-in-sidebar', true);

View file

@ -16,6 +16,10 @@
--urlbarView-highlight-background: var(--toolbarbutton-hover-background); --urlbarView-highlight-background: var(--toolbarbutton-hover-background);
border-radius: var(--toolbarbutton-border-radius); border-radius: var(--toolbarbutton-border-radius);
padding: 1px; padding: 1px;
:root:not([zen-single-toolbar='true']) &[zen-floating-urlbar='true'] {
--urlbar-container-padding: 2px !important;
}
} }
.urlbar-input::placeholder { .urlbar-input::placeholder {
@ -90,6 +94,12 @@
justify-content: center !important; justify-content: center !important;
align-items: center !important; align-items: center !important;
margin: 0; margin: 0;
:root[zen-single-toolbar='true'] & {
padding: 6px !important;
width: unset !important;
height: unset !important;
}
} }
#tracking-protection-icon-container { #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 /* Code ~~stolen~~ taken inspiration from https://github.com/greeeen-dev/zen-arc-cmd-bar
* *
* MIT License * MIT License