Skip to content

Commit 110d4e1

Browse files
committed
Add option to hide tracking protection icon in URL bar
1 parent 6d458d3 commit 110d4e1

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

src/browser/app/profile/zen-browser.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ pref('zen.view.compact.animate-sidebar', true);
118118
pref('zen.view.compact.show-sidebar-and-toolbar-on-hover', true);
119119

120120
pref('zen.urlbar.replace-newtab', true);
121+
pref('zen.urlbar.show-protections-icon', false);
121122
pref('zen.urlbar.behavior', 'floating-on-type'); // default, floating-on-type, float
122123
pref('zen.urlbar.wait-to-clear', 45000); // in ms (default 45s)
123124
pref('zen.urlbar.show-domain-only-in-sidebar', true);

src/browser/base/content/zen-styles/zen-urlbar.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
--urlbarView-highlight-background: var(--toolbarbutton-hover-background);
1717
border-radius: var(--toolbarbutton-border-radius);
1818
padding: 1px;
19+
20+
:root:not([zen-single-toolbar='true']) &[zen-floating-urlbar='true'] {
21+
--urlbar-container-padding: 2px !important;
22+
}
1923
}
2024

2125
.urlbar-input::placeholder {
@@ -90,6 +94,12 @@
9094
justify-content: center !important;
9195
align-items: center !important;
9296
margin: 0;
97+
98+
:root[zen-single-toolbar='true'] & {
99+
padding: 6px !important;
100+
width: unset !important;
101+
height: unset !important;
102+
}
93103
}
94104

95105
#tracking-protection-icon-container {
@@ -454,6 +464,12 @@ button.popup-notification-dropmarker {
454464
}
455465
}
456466

467+
@media not (-moz-bool-pref: 'zen.urlbar.show-protections-icon') {
468+
#tracking-protection-icon-container {
469+
display: none !important;
470+
}
471+
}
472+
457473
/* Code ~~stolen~~ taken inspiration from https://github.com/greeeen-dev/zen-arc-cmd-bar
458474
*
459475
* MIT License

0 commit comments

Comments
 (0)