mirror of
https://github.com/zen-browser/desktop.git
synced 2025-10-01 07:28:39 +00:00
feat: Add compact view option to preferences
The code changes introduce a new preference option for enabling the compact view in the Zen browser. This allows users to show only the toolbars they use, improving the browsing experience for those who prefer a minimalistic interface. (closes #31)
This commit is contained in:
@@ -105,7 +105,7 @@ pref('zen.welcomeScreen.seen', false);
|
|||||||
pref('zen.tabs.vertical', true);
|
pref('zen.tabs.vertical', true);
|
||||||
pref('zen.theme.accent-color', "#aac7ff");
|
pref('zen.theme.accent-color', "#aac7ff");
|
||||||
pref('zen.theme.toolbar-themed', true);
|
pref('zen.theme.toolbar-themed', true);
|
||||||
|
pref('zen.view.compact', false);
|
||||||
|
|
||||||
pref('browser.cache.jsbc_compression_level', 3);
|
pref('browser.cache.jsbc_compression_level', 3);
|
||||||
|
|
||||||
|
@@ -59,4 +59,9 @@ Preferences.addAll([
|
|||||||
type: "bool",
|
type: "bool",
|
||||||
default: true,
|
default: true,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
id: "zen.view.compact",
|
||||||
|
type: "bool",
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
]);
|
]);
|
||||||
|
@@ -17,6 +17,13 @@
|
|||||||
<checkbox id="zenLooksAndFeelUseThemedToolbar"
|
<checkbox id="zenLooksAndFeelUseThemedToolbar"
|
||||||
data-l10n-id="zen-look-and-feel-themed-toolbar"
|
data-l10n-id="zen-look-and-feel-themed-toolbar"
|
||||||
preference="zen.theme.toolbar-themed"/>
|
preference="zen.theme.toolbar-themed"/>
|
||||||
|
|
||||||
|
<label><html:h2 data-l10n-id="zen-look-and-feel-compact-view-header"/></label>
|
||||||
|
<description class="description-deemphasized" data-l10n-id="zen-look-and-feel-compact-view-description" />
|
||||||
|
|
||||||
|
<checkbox id="zenLooksAndFeelUseThemedToolbar"
|
||||||
|
data-l10n-id="zen-look-and-feel-compact-view-enabled"
|
||||||
|
preference="zen.view.compact"/>
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
|
||||||
<hbox id="zenSidePanelsCategory"
|
<hbox id="zenSidePanelsCategory"
|
||||||
|
@@ -14,3 +14,9 @@ zen-side-panels-header = General settings for web panels
|
|||||||
zen-side-panels-description = Increase productivity by having multiple views at once!
|
zen-side-panels-description = Increase productivity by having multiple views at once!
|
||||||
zen-side-panels-enabled =
|
zen-side-panels-enabled =
|
||||||
.label = Enable Web Side Panels
|
.label = Enable Web Side Panels
|
||||||
|
|
||||||
|
|
||||||
|
zen-look-and-feel-compact-view-header = Show in compact view
|
||||||
|
zen-look-and-feel-compact-view-description = Only show the toolbars you use!
|
||||||
|
zen-look-and-feel-compact-view-enabled =
|
||||||
|
.label = Enable { -brand-short-name }'s compact mode
|
@@ -470,3 +470,53 @@ panelmultiview {
|
|||||||
#zen-main-app-wrapper {
|
#zen-main-app-wrapper {
|
||||||
background: var(--zen-main-browser-background);
|
background: var(--zen-main-browser-background);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (-moz-bool-pref: "zen.view.compact") {
|
||||||
|
#navigator-toolbox,
|
||||||
|
#zen-appcontent-navbar-container {
|
||||||
|
position: absolute;
|
||||||
|
z-index: 1;
|
||||||
|
overflow: hidden;
|
||||||
|
opacity: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navigator-toolbox {
|
||||||
|
width: 1px;
|
||||||
|
min-width: 0;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#zen-appcontent-navbar-container {
|
||||||
|
min-height: 0;
|
||||||
|
height: 1px;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navigator-toolbox:hover,
|
||||||
|
#navigator-toolbox:has([open="true"]) {
|
||||||
|
width: unset;
|
||||||
|
overflow: visible;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#zen-appcontent-navbar-container:hover,
|
||||||
|
#zen-appcontent-navbar-container:has([open="true"]) {
|
||||||
|
height: unset;
|
||||||
|
background: var(--zen-themed-toolbar-bg) !important;
|
||||||
|
overflow: visible;
|
||||||
|
border-bottom: var(--zen-appcontent-border) !important;
|
||||||
|
opacity: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navigator-toolbox:hover #titlebar,
|
||||||
|
#navigator-toolbox:has([open="true"]) #titlebar {
|
||||||
|
background: var(--zen-themed-toolbar-bg) !important;
|
||||||
|
border-right: var(--zen-appcontent-border) !important;
|
||||||
|
padding: 0 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#tabbrowser-tabbox #tabbrowser-tabpanels .browserSidebarContainer {
|
||||||
|
margin-top: 10px;
|
||||||
|
margin-left: 10px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user