Skip to content

Commit 0e030dc

Browse files
committed
refactor: Properly indent preferences, b=no-bug, c=mods, workspaces
1 parent aa4e385 commit 0e030dc

File tree

7 files changed

+36
-34
lines changed

7 files changed

+36
-34
lines changed

src/browser/app/profile/features.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
44

55
#ifdef MOZILLA_OFFICIAL
6-
pref('zen.welcome-screen.seen', false, sticky);
6+
pref('zen.welcome-screen.seen', false, sticky);
77
#else
8-
pref('zen.welcome-screen.seen', true, sticky);
8+
pref('zen.welcome-screen.seen', true, sticky);
99
#endif
1010

1111
pref('zen.tabs.vertical', true);
@@ -32,9 +32,9 @@ pref('zen.haptic-feedback.enabled', true);
3232

3333
// Section: Watermark
3434
#ifdef MOZILLA_OFFICIAL
35-
pref('zen.watermark.enabled', true, sticky);
35+
pref('zen.watermark.enabled', true, sticky);
3636
#else
37-
pref('zen.watermark.enabled', false, sticky);
37+
pref('zen.watermark.enabled', false, sticky);
3838
#endif
3939

4040
// Startup flags

src/browser/app/profile/features/mods.inc

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,15 @@
55
pref('zen.mods.updated-value-observer', false);
66

77
pref('zen.mods.auto-update-days', 20); // In days
8+
89
#ifdef MOZILLA_OFFICIAL
9-
pref('zen.mods.auto-update', true);
10-
pref('zen.rice.api.url', 'https://share.zen-browser.app', locked);
11-
pref('zen.injections.match-urls', 'https://zen-browser.app/*,https://share.zen-browser.app/*', locked);
10+
pref('zen.mods.auto-update', true);
11+
pref('zen.rice.api.url', 'https://share.zen-browser.app', locked);
12+
pref('zen.injections.match-urls', 'https://zen-browser.app/*,https://share.zen-browser.app/*', locked);
1213
#else
13-
pref('zen.mods.auto-update', false);
14-
pref('zen.rice.api.url', "http://localhost", locked);
15-
pref('zen.injections.match-urls', 'http://localhost/*', locked);
14+
pref('zen.mods.auto-update', false);
15+
pref('zen.rice.api.url', "http://localhost", locked);
16+
pref('zen.injections.match-urls', 'http://localhost/*', locked);
1617
#endif
1718

1819
pref('zen.rice.share.notice.accepted', false);

src/browser/app/profile/features/theme.inc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ pref('zen.theme.gradient.show-custom-colors', false);
99
pref('zen.theme.essentials-favicon-bg', true);
1010

1111
#ifdef XP_MACOSX
12-
pref('zen.theme.border-radius', 10); // In pixels
12+
pref('zen.theme.border-radius', 10); // In pixels
1313
#else
14-
pref('zen.theme.border-radius', 8); // In pixels
14+
pref('zen.theme.border-radius', 8); // In pixels
1515
#endif
1616

1717
#ifdef XP_MACOSX
18-
pref('zen.theme.acrylic-elements', false);
18+
pref('zen.theme.acrylic-elements', false);
1919
#else
20-
pref('zen.theme.acrylic-elements', false);
20+
pref('zen.theme.acrylic-elements', false);
2121
#endif
2222

src/browser/app/profile/features/view.inc

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,18 +6,19 @@ pref('zen.view.sidebar-height-throttle', 200); // in ms
66
pref('zen.view.sidebar-expanded.max-width', 500);
77

88
#ifdef XP_MACOSX
9-
pref('zen.view.mac.show-three-dot-menu', false);
10-
pref('zen.widget.mac.mono-window-controls', true);
9+
pref('zen.view.mac.show-three-dot-menu', false);
10+
pref('zen.widget.mac.mono-window-controls', true);
1111
#endif
12+
1213
pref('zen.view.use-single-toolbar', true);
1314
pref('zen.view.sidebar-expanded', true);
1415
pref('zen.view.sidebar-collapsed.hide-mute-button', true);
1516
pref('zen.view.experimental-force-window-controls-left', false);
1617

1718
#ifdef XP_MACOSX
18-
pref('zen.view.grey-out-inactive-windows', false);
19+
pref('zen.view.grey-out-inactive-windows', false);
1920
#else
20-
pref('zen.view.grey-out-inactive-windows', true);
21+
pref('zen.view.grey-out-inactive-windows', true);
2122
#endif
2223

2324
pref('zen.view.hide-window-controls', true);

src/browser/app/profile/features/workspaces.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ pref('services.sync.engine.workspaces', false);
1414
pref('zen.workspaces.container-specific-essentials-enabled', false);
1515

1616
#ifdef MOZILLA_OFFICIAL
17-
pref('zen.workspaces.debug', false);
17+
pref('zen.workspaces.debug', false);
1818
#else
19-
pref('zen.workspaces.debug', true);
19+
pref('zen.workspaces.debug', true);
2020
#endif
2121

2222
// Section: Pinned tabs management

src/browser/app/profile/performance.inc

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@
33
// file, You can obtain one at http://mozilla.org/MPL/2.0/.
44

55
#ifdef XP_MACOSX
6-
// Pref to control the reponse taken on macOS when the OS is under memory
7-
// pressure. Changes to the pref take effect immediately. Browser restart not
8-
// required. The pref value is a bitmask:
9-
// 0x0: No response (other than recording for telemetry, crash reporting)
10-
// 0x1: Use the tab unloading feature to reduce memory use. Requires that
11-
// the above "browser.tabs.unloadOnLowMemory" pref be set to true for tab
12-
// unloading to occur.
13-
// 0x2: Issue the internal "memory-pressure" notification to reduce memory use
14-
// 0x3: Both 0x1 and 0x2.
15-
pref("browser.lowMemoryResponseMask", 3);
6+
// Pref to control the reponse taken on macOS when the OS is under memory
7+
// pressure. Changes to the pref take effect immediately. Browser restart not
8+
// required. The pref value is a bitmask:
9+
// 0x0: No response (other than recording for telemetry, crash reporting)
10+
// 0x1: Use the tab unloading feature to reduce memory use. Requires that
11+
// the above "browser.tabs.unloadOnLowMemory" pref be set to true for tab
12+
// unloading to occur.
13+
// 0x2: Issue the internal "memory-pressure" notification to reduce memory use
14+
// 0x3: Both 0x1 and 0x2.
15+
pref("browser.lowMemoryResponseMask", 3);
1616
#endif
1717

1818
pref("network.predictor.enable-hover-on-ssl", true);

src/browser/app/profile/zen-browser.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ pref("intl.multilingual.downloadEnabled", false);
1515
pref('toolkit.legacyUserProfileCustomizations.stylesheets', true);
1616

1717
#ifdef XP_WIN
18-
#include windows.inc
18+
#include windows.inc
1919
#endif
2020

2121
#ifdef UNIX_BUT_NOT_MAC
22-
#include linux.inc
22+
#include linux.inc
2323
#endif
2424

2525
#ifdef XP_MACOSX
26-
#include macos.inc
26+
#include macos.inc
2727
#endif
2828

2929
#include urlbar.inc
@@ -37,7 +37,7 @@ pref('toolkit.legacyUserProfileCustomizations.stylesheets', true);
3737
#include features.inc
3838

3939
#ifndef XP_MACOSX
40-
#include smoothscroll.inc
40+
#include smoothscroll.inc
4141
#endif
4242

4343
#include performance.inc

0 commit comments

Comments
 (0)