mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Update watermark preference based on build type and enhance URL bar positioning
This commit is contained in:
@@ -173,7 +173,11 @@ pref('zen.essentials.enabled', true);
|
||||
pref('zen.workspaces.container-specific-essentials-enabled', false);
|
||||
|
||||
// Zen Watermark
|
||||
#ifdef MOZILLA_OFFICIAL
|
||||
pref('zen.watermark.enabled', true, sticky);
|
||||
#else
|
||||
pref('zen.watermark.enabled', false, sticky);
|
||||
#endif
|
||||
|
||||
// Smooth scrolling
|
||||
pref('apz.overscroll.enabled', true); // not DEFAULT on Linux
|
||||
|
@@ -131,9 +131,10 @@ var gZenVerticalTabsManager = {
|
||||
this._toolbarOriginalParent = document.getElementById('nav-bar').parentElement;
|
||||
|
||||
gZenCompactModeManager.addEventListener(updateEvent);
|
||||
this._updateEvent();
|
||||
this.initRightSideOrderContextMenu();
|
||||
|
||||
window.addEventListener('DOMContentLoaded', updateEvent, { once: true });
|
||||
|
||||
const tabs = document.getElementById('tabbrowser-tabs');
|
||||
|
||||
XPCOMUtils.defineLazyPreferenceGetter(this, 'canOpenTabOnMiddleClick', 'zen.tabs.newtab-on-middle-click', true);
|
||||
|
@@ -20,6 +20,9 @@
|
||||
min-width: 45%;
|
||||
--urlbar-container-height: 55px !important;
|
||||
--urlbar-margin-inline: 10px !important;
|
||||
position: fixed;
|
||||
|
||||
top: calc(var(--zen-toolbar-height) * 4);
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
|
||||
|
@@ -492,7 +492,7 @@
|
||||
// Return as a proper data URL
|
||||
return `data:${faviconData.mimeType};base64,${base64String}`;
|
||||
} catch (ex) {
|
||||
console.error("Failed to get favicon:", ex);
|
||||
// console.error("Failed to get favicon:", ex);
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -577,4 +577,4 @@
|
||||
}
|
||||
|
||||
window.gZenPinnedTabManager = new ZenPinnedTabManager();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user