mirror of
https://github.com/zen-browser/desktop.git
synced 2025-09-05 19:08:18 +00:00
Refactor Zen Compact Mode styles and preference handling
This commit is contained in:
@@ -128,7 +128,7 @@
|
||||
#navigator-toolbox[movingtab],
|
||||
#navigator-toolbox:has(.tabbrowser-tab:active),
|
||||
#navigator-toolbox:has(
|
||||
*:is([panelopen='true'], [open='true'], #nav-bar:focus-within):not(tab):not(.zen-compact-mode-ignore)
|
||||
*:is([panelopen='true'], [open], #nav-bar:focus-within):not(tab):not(.zen-compact-mode-ignore)
|
||||
) {
|
||||
&:not([animate='true']) {
|
||||
transition:
|
||||
|
@@ -20,14 +20,6 @@ var gZenCompactModeManager = {
|
||||
_removeHoverFrames: {},
|
||||
|
||||
init() {
|
||||
XPCOMUtils.defineLazyPreferenceGetter(
|
||||
lazyCompactMode,
|
||||
'COMPACT_MODE_ENABLED',
|
||||
'zen.view.compact',
|
||||
true,
|
||||
this._updateEvent.bind(this)
|
||||
);
|
||||
|
||||
Services.prefs.addObserver('zen.view.sidebar-expanded.on-hover', this._disableTabsOnHoverIfConflict.bind(this));
|
||||
Services.prefs.addObserver('zen.tabs.vertical.right-side', this._updateSidebarIsOnRight.bind(this));
|
||||
|
||||
@@ -41,7 +33,7 @@ var gZenCompactModeManager = {
|
||||
},
|
||||
|
||||
get prefefence() {
|
||||
return lazyCompactMode.COMPACT_MODE_ENABLED;
|
||||
return Services.prefs.getBoolPref('zen.view.compact');
|
||||
},
|
||||
|
||||
set preference(value) {
|
||||
|
Reference in New Issue
Block a user