mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-31 00:54:38 +00:00
Merge pull request #4792 from afonsofrancof/feature/open-on-hover-compact-mode
This commit is contained in:
@@ -115,6 +115,7 @@ pref('zen.view.compact.toolbar-hide-after-hover.duration', 1000);
|
||||
pref('zen.view.compact.color-toolbar', true);
|
||||
pref('zen.view.compact.color-sidebar', true);
|
||||
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.behavior', 'floating-on-type'); // default, floating-on-type, float
|
||||
|
||||
@@ -282,15 +282,28 @@ var gZenCompactModeManager = {
|
||||
},
|
||||
|
||||
get hoverableElements() {
|
||||
if (typeof this._showSidebarAndToolbarOnHover === 'undefined') {
|
||||
this._showSidebarAndToolbarOnHover = Services.prefs.getBoolPref(
|
||||
'zen.view.compact.show-sidebar-and-toolbar-on-hover',
|
||||
true
|
||||
);
|
||||
}
|
||||
return [
|
||||
...(!this._showSidebarAndToolbarOnHover
|
||||
? []
|
||||
: [
|
||||
{
|
||||
element: this.sidebar,
|
||||
screenEdge: this.sidebarIsOnRight ? 'right' : 'left',
|
||||
keepHoverDuration: 100,
|
||||
},
|
||||
{
|
||||
element: document.getElementById('zen-appcontent-navbar-container'),
|
||||
screenEdge: 'top',
|
||||
},
|
||||
]),
|
||||
{
|
||||
element: this.sidebar,
|
||||
screenEdge: this.sidebarIsOnRight ? 'right' : 'left',
|
||||
keepHoverDuration: 100,
|
||||
},
|
||||
{
|
||||
element: document.getElementById('zen-appcontent-navbar-container'),
|
||||
screenEdge: 'top',
|
||||
element: gZenVerticalTabsManager.actualWindowButtons,
|
||||
},
|
||||
{
|
||||
element: gZenVerticalTabsManager.actualWindowButtons,
|
||||
|
||||
Reference in New Issue
Block a user