From 2885d200d5b36c35c6326553d6e97f8c256b9c68 Mon Sep 17 00:00:00 2001 From: Mauro Balades Date: Tue, 21 May 2024 19:13:03 +0200 Subject: [PATCH] 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) --- src/browser/app/profile/zen-browser.js | 2 +- .../components/preferences/zen-looks.js | 5 ++ .../preferences/zenLooksAndFeel.inc.xhtml | 7 +++ .../browser/preferences/zen-preferences.ftl | 6 +++ .../themes/shared/zen-browser-shared.css | 50 +++++++++++++++++++ 5 files changed, 69 insertions(+), 1 deletion(-) diff --git a/src/browser/app/profile/zen-browser.js b/src/browser/app/profile/zen-browser.js index 4110f951c..3a32d36b7 100644 --- a/src/browser/app/profile/zen-browser.js +++ b/src/browser/app/profile/zen-browser.js @@ -105,7 +105,7 @@ pref('zen.welcomeScreen.seen', false); pref('zen.tabs.vertical', true); pref('zen.theme.accent-color', "#aac7ff"); pref('zen.theme.toolbar-themed', true); - +pref('zen.view.compact', false); pref('browser.cache.jsbc_compression_level', 3); diff --git a/src/browser/components/preferences/zen-looks.js b/src/browser/components/preferences/zen-looks.js index 90586d5ca..82b2a4e05 100644 --- a/src/browser/components/preferences/zen-looks.js +++ b/src/browser/components/preferences/zen-looks.js @@ -59,4 +59,9 @@ Preferences.addAll([ type: "bool", default: true, }, + { + id: "zen.view.compact", + type: "bool", + default: false, + }, ]); diff --git a/src/browser/components/preferences/zenLooksAndFeel.inc.xhtml b/src/browser/components/preferences/zenLooksAndFeel.inc.xhtml index 5755c9054..2e0f46e7c 100644 --- a/src/browser/components/preferences/zenLooksAndFeel.inc.xhtml +++ b/src/browser/components/preferences/zenLooksAndFeel.inc.xhtml @@ -17,6 +17,13 @@ + + + + +