Compare commits
50 Commits
1.0.0-a.23
...
1.0.0-a.24
Author | SHA1 | Date | |
---|---|---|---|
![]() |
984e29f4cd | ||
![]() |
72c535b039 | ||
![]() |
000c41038d | ||
![]() |
776c9f69d5 | ||
![]() |
b38acdd8be | ||
![]() |
c8ad6cb70e | ||
![]() |
bb6113f221 | ||
![]() |
83d91ea38c | ||
![]() |
481687bdab | ||
![]() |
47f91322f6 | ||
![]() |
4549ac3671 | ||
![]() |
7ec8523c95 | ||
![]() |
1bd8f37381 | ||
![]() |
fa7a0ac661 | ||
![]() |
8f800f5134 | ||
![]() |
9cdfc864b3 | ||
![]() |
b2b3fb0b07 | ||
![]() |
c92931e005 | ||
![]() |
7c82ce5c23 | ||
![]() |
f36613e7e8 | ||
![]() |
71c131032b | ||
![]() |
81a8715b7b | ||
![]() |
5599000d33 | ||
![]() |
8cdf09daa0 | ||
![]() |
fc6a70162b | ||
![]() |
bc109d33c8 | ||
![]() |
9f10b74af5 | ||
![]() |
a65753d9a0 | ||
![]() |
234f116964 | ||
![]() |
6b34aa9d3d | ||
![]() |
3939aa8809 | ||
![]() |
de5f73a9e6 | ||
![]() |
26a9e255c1 | ||
![]() |
b50ed3a2d5 | ||
![]() |
0900c27d2b | ||
![]() |
ae723290d7 | ||
![]() |
1834fe2177 | ||
![]() |
3d6707fe21 | ||
![]() |
7e3eba280b | ||
![]() |
cba262e090 | ||
![]() |
b187c9383b | ||
![]() |
e7013c4db4 | ||
![]() |
1b5881c0fb | ||
![]() |
66d8d4bd71 | ||
![]() |
552a3c3cac | ||
![]() |
fb58c42938 | ||
![]() |
7a4a7681b9 | ||
![]() |
5a3a383cde | ||
![]() |
5943be1b39 | ||
![]() |
136993f203 |
37
.github/workflows/macos-alpha-build.yml
vendored
@@ -45,6 +45,30 @@ jobs:
|
|||||||
brew install cairo sccache gnu-tar mercurial
|
brew install cairo sccache gnu-tar mercurial
|
||||||
sudo pip install setuptools
|
sudo pip install setuptools
|
||||||
|
|
||||||
|
# completly uninstall python3 and python3.12
|
||||||
|
brew uninstall --ignore-dependencies python3.12 -f
|
||||||
|
|
||||||
|
export PATH="$(python3 -m site --user-base)/bin":$PATH
|
||||||
|
python3 -m pip install --user mercurial
|
||||||
|
|
||||||
|
rm '/usr/local/bin/2to3-3.11' # fix Could not symlink bin/2to3-3.11
|
||||||
|
rm '/usr/local/bin/2to3-3.12' # fix Could not symlink bin/2to3-3.12
|
||||||
|
rm /usr/local/bin/2to3 # fix Could not symlink bin/2to3
|
||||||
|
rm '/usr/local/bin/idle3.11' #fix Could not symlink bin/idle3.11
|
||||||
|
rm '/usr/local/bin/idle3.12' # fix Could not symlink bin/idle3.12
|
||||||
|
rm '/usr/local/bin/idle3' # fix Could not symlink bin/idle3
|
||||||
|
rm '/usr/local/bin/pydoc3.11' # fix Could not symlink bin/pydoc3.11
|
||||||
|
rm '/usr/local/bin/pydoc3.12' # fix Could not symlink bin/pydoc3.12
|
||||||
|
rm '/usr/local/bin/pydoc3' # fix Could not symlink bin/pydoc3
|
||||||
|
rm '/usr/local/bin/python3.11' # fix Could not symlink bin/python3.11
|
||||||
|
rm '/usr/local/bin/python3.12' # fix Could not symlink bin/python3.12
|
||||||
|
rm '/usr/local/bin/python3' # fix Could not symlink bin/python3
|
||||||
|
rm '/usr/local/bin/python3.11-config' # fix Could not symlink bin/python3.11-config
|
||||||
|
rm '/usr/local/bin/python3.12-config' # fix Could not symlink bin/python3.12-config
|
||||||
|
rm '/usr/local/bin/python3-config' # fix Could not symlink bin/python3-config
|
||||||
|
|
||||||
|
brew install watchman
|
||||||
|
|
||||||
- name: Force usage fo gnu-tar
|
- name: Force usage fo gnu-tar
|
||||||
run: |
|
run: |
|
||||||
echo 'export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bash_profile
|
echo 'export PATH="/usr/local/opt/gnu-tar/libexec/gnubin:$PATH"' >> ~/.bash_profile
|
||||||
@@ -68,18 +92,19 @@ jobs:
|
|||||||
- name: Download firefox source and dependancies
|
- name: Download firefox source and dependancies
|
||||||
run: pnpm surfer download
|
run: pnpm surfer download
|
||||||
|
|
||||||
|
- name: Bootstrap
|
||||||
|
run: |
|
||||||
|
cd engine
|
||||||
|
export PATH="$(python3 -m site --user-base)/bin":$PATH
|
||||||
|
./mach --no-interactive bootstrap --application-choice browser --no-system-changes
|
||||||
|
cd ..
|
||||||
|
|
||||||
- name: Import
|
- name: Import
|
||||||
env:
|
env:
|
||||||
SURFER_COMPAT: ${{ matrix.arch == 'x64' }}
|
SURFER_COMPAT: ${{ matrix.arch == 'x64' }}
|
||||||
run: |
|
run: |
|
||||||
pnpm surfer import
|
pnpm surfer import
|
||||||
|
|
||||||
- name: Bootstrap
|
|
||||||
run: |
|
|
||||||
cd engine
|
|
||||||
./mach --no-interactive bootstrap --application-choice browser
|
|
||||||
cd ..
|
|
||||||
|
|
||||||
- name: build Zen
|
- name: build Zen
|
||||||
env:
|
env:
|
||||||
SURFER_COMPAT: ${{ matrix.arch == 'x64' }}
|
SURFER_COMPAT: ${{ matrix.arch == 'x64' }}
|
||||||
|
BIN
configs/branding/alpha/firefox.ico
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
configs/branding/alpha/firefox64.ico
Normal file
After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 461 B After Width: | Height: | Size: 624 B |
Before Width: | Height: | Size: 634 B After Width: | Height: | Size: 951 B |
Before Width: | Height: | Size: 697 B After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 890 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 2.6 KiB |
@@ -1,4 +1,4 @@
|
|||||||
<svg width="320" height="130" xmlns="http://www.w3.org/2000/svg">
|
<svg width="320" height="130" xmlns="http://www.w3.org/2000/svg">
|
||||||
<rect width="300" height="100" x="10" y="10" style="fill:rgb(0,0,255);stroke-width:3;stroke:red" />
|
<rect width="300" height="100" x="10" y="10" style="fill:rgb(0,0,255);stroke-width:3;stroke:red" />
|
||||||
Sorry, your browser does not support inline SVG.
|
Sorry, your browser does not support inline SVG.
|
||||||
</svg>
|
</svg>
|
Before Width: | Height: | Size: 225 B After Width: | Height: | Size: 226 B |
BIN
configs/branding/beta/firefox.ico
Normal file
After Width: | Height: | Size: 4.3 KiB |
BIN
configs/branding/beta/firefox64.ico
Normal file
After Width: | Height: | Size: 17 KiB |
Before Width: | Height: | Size: 3.2 KiB After Width: | Height: | Size: 5.3 KiB |
Before Width: | Height: | Size: 461 B After Width: | Height: | Size: 624 B |
Before Width: | Height: | Size: 634 B After Width: | Height: | Size: 951 B |
Before Width: | Height: | Size: 697 B After Width: | Height: | Size: 1.0 KiB |
Before Width: | Height: | Size: 6.2 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 890 B After Width: | Height: | Size: 1.2 KiB |
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 2.0 KiB |
Before Width: | Height: | Size: 13 KiB After Width: | Height: | Size: 12 KiB |
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 2.6 KiB |
@@ -75,7 +75,7 @@ if test "$ZEN_RELEASE"; then
|
|||||||
|
|
||||||
ac_add_options --enable-updater
|
ac_add_options --enable-updater
|
||||||
|
|
||||||
#export MOZ_PACKAGE_JSSHELL=1
|
export MOZ_PACKAGE_JSSHELL=1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
ac_add_options --enable-unverified-updates
|
ac_add_options --enable-unverified-updates
|
||||||
|
@@ -29,7 +29,7 @@ modules:
|
|||||||
|
|
||||||
- install -Dm0755 metadata/launch-script.sh ${{FLATPAK_DEST}}/bin/launch-script.sh
|
- install -Dm0755 metadata/launch-script.sh ${{FLATPAK_DEST}}/bin/launch-script.sh
|
||||||
- install -Dm0644 metadata/policies.json ${{FLATPAK_DEST}}/bin/distribution/policies.json
|
- install -Dm0644 metadata/policies.json ${{FLATPAK_DEST}}/bin/distribution/policies.json
|
||||||
- install -Dm0644 metadata/icons/io.github.zen_browser.zen.png ${{FLATPAK_DEST}}/share/icons/hicolor/256x256/apps/${{FLATPAK_ID}}.png
|
- install -Dm0644 metadata/icons/io.github.zen_browser.zen.svg ${{FLATPAK_DEST}}/share/icons/hicolor/scalable/apps/${{FLATPAK_ID}}.png
|
||||||
- install -Dm0644 metadata/io.github.zen_browser.zen.metainfo.xml ${{FLATPAK_DEST}}/share/metainfo/${{FLATPAK_ID}}.metainfo.xml
|
- install -Dm0644 metadata/io.github.zen_browser.zen.metainfo.xml ${{FLATPAK_DEST}}/share/metainfo/${{FLATPAK_ID}}.metainfo.xml
|
||||||
- install -Dm0644 metadata/io.github.zen_browser.zen.desktop ${{FLATPAK_DEST}}/share/applications/${{FLATPAK_ID}}.desktop
|
- install -Dm0644 metadata/io.github.zen_browser.zen.desktop ${{FLATPAK_DEST}}/share/applications/${{FLATPAK_ID}}.desktop
|
||||||
|
|
||||||
|
3402
package-lock.json
generated
Normal file
@@ -27,6 +27,6 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://github.com/zen-browser/core#readme",
|
"homepage": "https://github.com/zen-browser/core#readme",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@zen-browser/surfer": "^1.2.9"
|
"@zen-browser/surfer": "^1.2.12"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
10
pnpm-lock.yaml
generated
@@ -9,8 +9,8 @@ importers:
|
|||||||
.:
|
.:
|
||||||
dependencies:
|
dependencies:
|
||||||
'@zen-browser/surfer':
|
'@zen-browser/surfer':
|
||||||
specifier: ^1.2.9
|
specifier: ^1.2.12
|
||||||
version: 1.2.9
|
version: 1.2.12
|
||||||
|
|
||||||
packages:
|
packages:
|
||||||
|
|
||||||
@@ -109,8 +109,8 @@ packages:
|
|||||||
'@types/node@17.0.45':
|
'@types/node@17.0.45':
|
||||||
resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==}
|
resolution: {integrity: sha512-w+tIMs3rq2afQdsPJlODhoUEKzFP1ayaoyl1CcnwtIlsVe7K7bA1NGm4s3PraqTLlXnbIN84zuBlxBWo1u9BLw==}
|
||||||
|
|
||||||
'@zen-browser/surfer@1.2.9':
|
'@zen-browser/surfer@1.2.12':
|
||||||
resolution: {integrity: sha512-XDEG80YOiQd0kl0PX0WzdYDwdOJ5hhrU0bcohBeK68my3nOXTIiuM26FXh3/2+feNzr/Of7Y6Qfmmdf0YCAvgw==}
|
resolution: {integrity: sha512-TfJrUc7P3pu0pf79UF3kL5fSjB5lVl5mqNnV+aOJWRsotvujlfX2tIVuIKTtCJvDeoZwvoAwlpogMZh3V5dcmQ==}
|
||||||
hasBin: true
|
hasBin: true
|
||||||
|
|
||||||
ansi-regex@5.0.1:
|
ansi-regex@5.0.1:
|
||||||
@@ -786,7 +786,7 @@ snapshots:
|
|||||||
|
|
||||||
'@types/node@17.0.45': {}
|
'@types/node@17.0.45': {}
|
||||||
|
|
||||||
'@zen-browser/surfer@1.2.9':
|
'@zen-browser/surfer@1.2.12':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@resvg/resvg-js': 1.4.0
|
'@resvg/resvg-js': 1.4.0
|
||||||
async-icns: 1.0.2
|
async-icns: 1.0.2
|
||||||
|
@@ -49,7 +49,6 @@ pref("network.http.max-persistent-connections-per-proxy", 48); // default=32
|
|||||||
pref("network.websocket.max-connections", 400); // default=200
|
pref("network.websocket.max-connections", 400); // default=200
|
||||||
pref("network.ssl_tokens_cache_capacity", 32768);
|
pref("network.ssl_tokens_cache_capacity", 32768);
|
||||||
|
|
||||||
|
|
||||||
/** MIXED CONTENT + CROSS-SITE ***/
|
/** MIXED CONTENT + CROSS-SITE ***/
|
||||||
pref("pdfjs.enableScripting", false);
|
pref("pdfjs.enableScripting", false);
|
||||||
pref("extensions.postDownloadThirdPartyPrompt", false);
|
pref("extensions.postDownloadThirdPartyPrompt", false);
|
||||||
|
@@ -68,9 +68,14 @@ pref('zen.theme.toolbar-themed', true);
|
|||||||
pref('zen.theme.pill-button', false);
|
pref('zen.theme.pill-button', false);
|
||||||
pref('zen.view.compact', false);
|
pref('zen.view.compact', false);
|
||||||
pref('zen.view.compact.hide-toolbar', false);
|
pref('zen.view.compact.hide-toolbar', false);
|
||||||
|
|
||||||
pref('zen.view.sidebar-expanded', false);
|
pref('zen.view.sidebar-expanded', false);
|
||||||
|
pref('zen.view.sidebar-expanded.on-hover', false);
|
||||||
pref('zen.view.sidebar-expanded.show-button', true);
|
pref('zen.view.sidebar-expanded.show-button', true);
|
||||||
pref('zen.view.sidebar-expanded.max-width', 400);
|
pref('zen.view.sidebar-expanded.max-width', 400);
|
||||||
|
|
||||||
|
pref('zen.view.sidebar-collapsed.hide-mute-button', true);
|
||||||
|
|
||||||
pref('zen.keyboard.shortcuts.enabled', true);
|
pref('zen.keyboard.shortcuts.enabled', true);
|
||||||
pref('zen.keyboard.shortcuts', ""); // Empty string means default shortcuts
|
pref('zen.keyboard.shortcuts', ""); // Empty string means default shortcuts
|
||||||
pref('zen.keyboard.shortcuts.disable-firefox', false);
|
pref('zen.keyboard.shortcuts.disable-firefox', false);
|
||||||
@@ -127,6 +132,10 @@ pref('dom.script_loader.bytecode_cache.strategy', 2);
|
|||||||
// Extremly experimental features
|
// Extremly experimental features
|
||||||
pref("dom.webgpu.enabled", true);
|
pref("dom.webgpu.enabled", true);
|
||||||
|
|
||||||
|
// Font rendering
|
||||||
|
pref('gfx.font_rendering.cleartype_params.rendering_mode', 5);
|
||||||
|
pref('gfx.font_rendering.cleartype_params.gamma', 1750);
|
||||||
|
|
||||||
#include better-fox.js
|
#include better-fox.js
|
||||||
|
|
||||||
// Betterfox overrides (Stay below the include directive)
|
// Betterfox overrides (Stay below the include directive)
|
||||||
@@ -150,5 +159,6 @@ pref("devtools.chrome.enabled", true);
|
|||||||
pref("sidebar.revamp", false, locked);
|
pref("sidebar.revamp", false, locked);
|
||||||
pref("sidebar.verticalTabs", false, locked);
|
pref("sidebar.verticalTabs", false, locked);
|
||||||
|
|
||||||
// Better scrollbar for Windows
|
// Better Windows theming
|
||||||
pref("widget.non-native-theme.scrollbar.style", 2);
|
pref("widget.non-native-theme.scrollbar.style", 2);
|
||||||
|
pref("widget.non-native-theme.use-theme-accent", true);
|
||||||
|
@@ -28,8 +28,20 @@ var gZenVerticalTabsManager = {
|
|||||||
//Services.prefs.addObserver('zen.view.compact', this._updateEvent.bind(this));
|
//Services.prefs.addObserver('zen.view.compact', this._updateEvent.bind(this));
|
||||||
Services.prefs.addObserver('zen.view.sidebar-expanded', this._updateEvent.bind(this));
|
Services.prefs.addObserver('zen.view.sidebar-expanded', this._updateEvent.bind(this));
|
||||||
Services.prefs.addObserver('zen.view.sidebar-expanded.max-width', this._updateEvent.bind(this));
|
Services.prefs.addObserver('zen.view.sidebar-expanded.max-width', this._updateEvent.bind(this));
|
||||||
|
Services.prefs.addObserver('zen.view.sidebar-expanded.on-hover', this._updateOnHoverVerticalTabs.bind(this));
|
||||||
this._updateMaxWidth();
|
this._updateMaxWidth();
|
||||||
this.initRightSideOrderContextMenu();
|
this.initRightSideOrderContextMenu();
|
||||||
|
this._updateOnHoverVerticalTabs();
|
||||||
|
},
|
||||||
|
|
||||||
|
_updateOnHoverVerticalTabs() {
|
||||||
|
let onHover = Services.prefs.getBoolPref('zen.view.sidebar-expanded.on-hover');
|
||||||
|
let sidebar = document.getElementById('navigator-toolbox');
|
||||||
|
if (onHover) {
|
||||||
|
sidebar.setAttribute('zen-user-hover', 'true');
|
||||||
|
} else {
|
||||||
|
sidebar.removeAttribute('zen-user-hover');
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
initRightSideOrderContextMenu() {
|
initRightSideOrderContextMenu() {
|
||||||
@@ -89,11 +101,13 @@ var gZenVerticalTabsManager = {
|
|||||||
toggleExpand() {
|
toggleExpand() {
|
||||||
let expanded = !this.expanded;
|
let expanded = !this.expanded;
|
||||||
Services.prefs.setBoolPref('zen.view.sidebar-expanded', expanded);
|
Services.prefs.setBoolPref('zen.view.sidebar-expanded', expanded);
|
||||||
|
Services.prefs.setBoolPref('zen.view.sidebar-expanded.on-hover', false);
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
var gZenCompactModeManager = {
|
var gZenCompactModeManager = {
|
||||||
init() {
|
init() {
|
||||||
|
Services.prefs.addObserver('zen.view.compact', this._updateEvent.bind(this));
|
||||||
},
|
},
|
||||||
|
|
||||||
get prefefence() {
|
get prefefence() {
|
||||||
@@ -104,6 +118,10 @@ var gZenCompactModeManager = {
|
|||||||
Services.prefs.setBoolPref('zen.view.compact', value);
|
Services.prefs.setBoolPref('zen.view.compact', value);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_updateEvent() {
|
||||||
|
Services.prefs.setBoolPref('zen.view.sidebar-expanded.on-hover', false);
|
||||||
|
},
|
||||||
|
|
||||||
toggle() {
|
toggle() {
|
||||||
this.preference = !this.prefefence;
|
this.preference = !this.prefefence;
|
||||||
},
|
},
|
||||||
|
@@ -23,11 +23,12 @@
|
|||||||
z-index: 1;
|
z-index: 1;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: var(--zen-compact-toolbox-margin);
|
padding: var(--zen-compact-toolbox-margin) !important;
|
||||||
padding-top: calc(var(--zen-compact-toolbox-margin-single) - var(--zen-element-separation));
|
padding-top: calc(var(--zen-compact-toolbox-margin-single) - var(--zen-element-separation));
|
||||||
|
|
||||||
& #titlebar {
|
& #titlebar {
|
||||||
border: 1px solid var(--zen-colors-border);
|
border: 1px solid var(--zen-colors-border);
|
||||||
|
min-width: calc(var(--zen-navigation-toolbar-min-width) + var(--zen-compact-toolbox-margin-single) * 4) !important;
|
||||||
background: var(--zen-colors-tertiary) !important;
|
background: var(--zen-colors-tertiary) !important;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
border-radius: var(--zen-panel-radius);
|
border-radius: var(--zen-panel-radius);
|
||||||
|
@@ -73,10 +73,7 @@
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#TabsToolbar .toolbarbutton-1:hover > :is(.toolbarbutton-icon, .toolbarbutton-badge-stack),
|
.zen-sidebar-action-button:hover {
|
||||||
#TabsToolbar .toolbarbutton-1[open="true"] > :is(.toolbarbutton-icon, .toolbarbutton-badge-stack),
|
|
||||||
.zen-sidebar-action-button:hover,
|
|
||||||
.zen-sidebar-action-button[open="true"] {
|
|
||||||
background: var(--toolbarbutton-hover-background) !important;
|
background: var(--toolbarbutton-hover-background) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -215,7 +212,7 @@
|
|||||||
|
|
||||||
@media (-moz-bool-pref: "zen.view.sidebar-expanded.show-button") {
|
@media (-moz-bool-pref: "zen.view.sidebar-expanded.show-button") {
|
||||||
#zen-expand-sidebar-button {
|
#zen-expand-sidebar-button {
|
||||||
display: block;
|
display: flex;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -31,6 +31,7 @@
|
|||||||
|
|
||||||
#TabsToolbar-customization-target {
|
#TabsToolbar-customization-target {
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
:root[customizing] .customization-target:not(#widget-overflow-fixed-list) {
|
:root[customizing] .customization-target:not(#widget-overflow-fixed-list) {
|
||||||
@@ -235,14 +236,14 @@
|
|||||||
display: none; /* TODO: fix this */
|
display: none; /* TODO: fix this */
|
||||||
}
|
}
|
||||||
|
|
||||||
@media not (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
@media (-moz-bool-pref: "zen.view.sidebar-collapsed.hide-mute-button") and (not (-moz-bool-pref: "zen.view.sidebar-expanded")) {
|
||||||
#navigator-toolbox {
|
.tab-icon-overlay:is([soundplaying], [muted]):not([selected]) {
|
||||||
width: fit-content !important;
|
display: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
@media (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
||||||
#navigator-toolbox {
|
#navigator-toolbox:is([zen-user-hover="true"]:hover, :not([zen-user-hover="true"])) {
|
||||||
--zen-navigation-toolbar-min-width: 155px;
|
--zen-navigation-toolbar-min-width: 155px;
|
||||||
min-width: var(--zen-navigation-toolbar-min-width) !important;
|
min-width: var(--zen-navigation-toolbar-min-width) !important;
|
||||||
align-items: start;
|
align-items: start;
|
||||||
@@ -250,41 +251,40 @@
|
|||||||
width: 170px;
|
width: 170px;
|
||||||
border: none;
|
border: none;
|
||||||
padding-left: 2px;
|
padding-left: 2px;
|
||||||
}
|
|
||||||
|
|
||||||
.tab-label-container {
|
& .tab-label-container {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#titlebar,
|
& #titlebar,
|
||||||
#TabsToolbar,
|
& #TabsToolbar,
|
||||||
#TabsToolbar .toolbar-items {
|
& #TabsToolbar .toolbar-items {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
align-items: flex-start;
|
align-items: flex-start;
|
||||||
}
|
}
|
||||||
|
|
||||||
#TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button) {
|
& #TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button) {
|
||||||
width: 100% !important;
|
width: 100% !important;
|
||||||
border-radius: 8px;
|
border-radius: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button):hover {
|
& #TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button):hover {
|
||||||
background: var(--button-hover-bgcolor);
|
background: var(--button-hover-bgcolor);
|
||||||
}
|
}
|
||||||
|
|
||||||
#TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button) .toolbarbutton-text,
|
& #TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button) .toolbarbutton-text,
|
||||||
#TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button) .toolbarbutton-icon,
|
& #TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button) .toolbarbutton-icon,
|
||||||
#TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button) .toolbarbutton-badge-stack {
|
& #TabsToolbar > .toolbar-items toolbarbutton:not(#zen-workspaces-button) .toolbarbutton-badge-stack {
|
||||||
background: transparent !important;
|
background: transparent !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tabbrowser-arrowscrollbox-periphery > toolbarbutton {
|
& #tabbrowser-arrowscrollbox-periphery > toolbarbutton {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabbrowser-tab {
|
& .tabbrowser-tab {
|
||||||
max-width: unset !important;
|
max-width: unset !important;
|
||||||
|
|
||||||
&:not([pinned]) {
|
&:not([pinned]) {
|
||||||
@@ -324,7 +324,8 @@
|
|||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#tabbrowser-arrowscrollbox::part(scrollbox) {
|
|
||||||
|
& #tabbrowser-arrowscrollbox::part(scrollbox) {
|
||||||
/* We have the pinned tabs on the top, next to each other,
|
/* We have the pinned tabs on the top, next to each other,
|
||||||
* and the rest of the tabs are below them. */
|
* and the rest of the tabs are below them. */
|
||||||
display: grid;
|
display: grid;
|
||||||
@@ -332,27 +333,38 @@
|
|||||||
padding: calc(var(--zen-tabbrowser-padding) / 2);
|
padding: calc(var(--zen-tabbrowser-padding) / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabbrowser-tab:not([pinned]),
|
& .tabbrowser-tab:not([pinned]),
|
||||||
#tabbrowser-arrowscrollbox-periphery {
|
& #tabbrowser-arrowscrollbox-periphery {
|
||||||
grid-column: 1 / -1;
|
grid-column: 1 / -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
.tabbrowser-tab[pinned] {
|
& .tabbrowser-tab[pinned] {
|
||||||
grid-column: span 1;
|
grid-column: span 1;
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zen-sidebar-icons-wrapper {
|
& #zen-sidebar-icons-wrapper {
|
||||||
width: -moz-available;
|
width: -moz-available;
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(auto-fill, minmax(37px, 1fr));
|
grid-template-columns: repeat(auto-fill, minmax(37px, 1fr));
|
||||||
transition: .1s;
|
transition: .1s;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zen-sidebar-icons-wrapper::before {
|
& #zen-sidebar-icons-wrapper::before {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media not (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
||||||
|
#navigator-toolbox {
|
||||||
|
width: fit-content !important;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
#navigator-toolbox[zen-user-hover="true"] {
|
||||||
|
width: fit-content !important;
|
||||||
|
}
|
||||||
|
|
||||||
/* Display the vertical tabs on the right side */
|
/* Display the vertical tabs on the right side */
|
||||||
@media (-moz-bool-pref: "zen.tabs.vertical.right-side") and (not (-moz-bool-pref: "zen.view.compact")) {
|
@media (-moz-bool-pref: "zen.tabs.vertical.right-side") and (not (-moz-bool-pref: "zen.view.compact")) {
|
||||||
@@ -361,22 +373,99 @@
|
|||||||
padding-left: 0;
|
padding-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@media (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
|
||||||
#navigator-toolbox {
|
|
||||||
padding-right: 3px !important;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#zen-sidebar-splitter {
|
#zen-sidebar-splitter {
|
||||||
order: 3;
|
order: 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
#tabbrowser-tabbox {
|
#tabbrowser-tabbox {
|
||||||
padding-left: 10px;
|
padding-left: var(--zen-element-separation);
|
||||||
}
|
}
|
||||||
|
|
||||||
#tabbrowser-tabpanels .browserSidebarContainer {
|
#tabbrowser-tabpanels .browserSidebarContainer {
|
||||||
margin-right: 0 !important;
|
margin-right: 0 !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (-moz-bool-pref: "zen.view.sidebar-expanded.on-hover") and (not (-moz-bool-pref: "zen.view.compact")) {
|
||||||
|
#zen-sidebar-splitter {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navigator-toolbox {
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TabsToolbar {
|
||||||
|
--hovered-verticaltab-width: 20em;
|
||||||
|
|
||||||
|
transition: 200ms, margin 200ms, border-color 0 ease-in-out !important;
|
||||||
|
z-index: 1;
|
||||||
|
background-repeat: no-repeat !important;
|
||||||
|
background-position: center center !important;
|
||||||
|
background-size: cover !important;
|
||||||
|
|
||||||
|
border-top: 1px solid transparent;
|
||||||
|
border-right: 1px solid transparent;
|
||||||
|
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
border-top-right-radius: var(--zen-border-radius);
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
#TabsToolbar:not(:hover) #tabbrowser-tabs[closebuttons="activetab"] .tabbrowser-tab .tab-content[class] > .tab-close-button[class] {
|
||||||
|
display: none !important;
|
||||||
|
visibility: hidden !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TabsToolbar-customization-target:hover > .toolbarbutton-1 > .toolbarbutton-text {
|
||||||
|
transition-delay: 0.2s !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TabsToolbar-customization-target:not(:hover) > #tabbrowser-tabs > #tabbrowser-arrowscrollbox > .tabbrowser-tab > .tab-stack > .tab-content > .tab-label-container {
|
||||||
|
opacity: 0;
|
||||||
|
visibility: collapse;
|
||||||
|
transition: opacity 370ms,
|
||||||
|
visibility 370ms,
|
||||||
|
width 370ms ease-in-out !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TabsToolbar-customization-target:not(:hover) > .toolbarbutton-1 > .toolbarbutton-text {
|
||||||
|
opacity: 0;
|
||||||
|
visibility: collapse;
|
||||||
|
transition: all 370ms !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TabsToolbar-customization-target:hover > .toolbarbutton-1 > .toolbarbutton-text {
|
||||||
|
transition-delay: 0.2s !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TabsToolbar:hover {
|
||||||
|
padding-right: .1rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TabsToolbar:hover {
|
||||||
|
z-index: 100 !important;
|
||||||
|
width: 250px !important;
|
||||||
|
background-color: var(--zen-dialog-background);
|
||||||
|
border-top-color: var(--zen-colors-border);
|
||||||
|
border-right-color: var(--zen-colors-border);
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (-moz-bool-pref: "zen.tabs.vertical.right-side") {
|
||||||
|
#TabsToolbar {
|
||||||
|
border-right: 0;
|
||||||
|
border-left: 1px solid transparent;
|
||||||
|
border-top-right-radius: 0;
|
||||||
|
border-top-left-radius: var(--zen-border-radius);
|
||||||
|
|
||||||
|
right: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
#TabsToolbar:hover {
|
||||||
|
border-left: 1px solid var(--zen-colors-border);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@@ -28,7 +28,7 @@
|
|||||||
--zen-colors-input-bg: color-mix(in srgb, var(--zen-primary-color) 10%, white 80%);
|
--zen-colors-input-bg: color-mix(in srgb, var(--zen-primary-color) 10%, white 80%);
|
||||||
|
|
||||||
--zen-dialog-background: var(--zen-colors-tertiary);
|
--zen-dialog-background: var(--zen-colors-tertiary);
|
||||||
--zen-urlbar-background: color-mix(in srgb, var(--zen-primary-color) 8%, #f1f1f1 92%);
|
--zen-urlbar-background: color-mix(in srgb, var(--zen-primary-color) 8%, #f7f7f7 92%);
|
||||||
|
|
||||||
--zen-secondary-btn-color: var(--zen-colors-primary-foreground);
|
--zen-secondary-btn-color: var(--zen-colors-primary-foreground);
|
||||||
|
|
||||||
@@ -111,7 +111,7 @@
|
|||||||
--input-border-color: var(--zen-input-border-color) !important;
|
--input-border-color: var(--zen-input-border-color) !important;
|
||||||
--zen-themed-toolbar-bg: var(--zen-colors-tertiary);
|
--zen-themed-toolbar-bg: var(--zen-colors-tertiary);
|
||||||
|
|
||||||
--toolbar-field-background-color: var(--zen-colors-input-bg);
|
--toolbar-field-background-color: var(--zen-colors-input-bg) !important;
|
||||||
--arrowpanel-background: var(--zen-dialog-background) !important;
|
--arrowpanel-background: var(--zen-dialog-background) !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -131,7 +131,7 @@
|
|||||||
--zen-colors-border: color-mix(in srgb, var(--zen-colors-secondary) 80%, black 20%);
|
--zen-colors-border: color-mix(in srgb, var(--zen-colors-secondary) 80%, black 20%);
|
||||||
|
|
||||||
--zen-dialog-background: color-mix(in srgb, var(--zen-primary-color) 10%, black 90%);
|
--zen-dialog-background: color-mix(in srgb, var(--zen-primary-color) 10%, black 90%);
|
||||||
--zen-urlbar-background: color-mix(in srgb, var(--zen-primary-color) 8%, black 92%);
|
--zen-urlbar-background: color-mix(in srgb, var(--zen-primary-color) 8%, rgb(15, 15, 15) 92%);
|
||||||
|
|
||||||
--zen-browser-gradient-base: color-mix(in srgb, var(--zen-primary-color) 30%, black 70%);
|
--zen-browser-gradient-base: color-mix(in srgb, var(--zen-primary-color) 30%, black 70%);
|
||||||
}
|
}
|
||||||
|
@@ -18,19 +18,20 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
@media (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
@media (-moz-bool-pref: "zen.view.sidebar-expanded") {
|
||||||
#zen-workspaces-button .zen-workspace-sidebar-name {
|
#navigator-toolbox:is([zen-user-hover="true"]:hover, :not([zen-user-hover="true"])) {
|
||||||
|
& #zen-workspaces-button .zen-workspace-sidebar-name {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zen-workspaces-button .zen-workspace-sidebar-icon[no-icon="true"] {
|
& #zen-workspaces-button .zen-workspace-sidebar-icon[no-icon="true"] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zen-workspaces-button .zen-workspace-sidebar-icon[no-icon="true"] + .zen-workspace-sidebar-name {
|
& #zen-workspaces-button .zen-workspace-sidebar-icon[no-icon="true"] + .zen-workspace-sidebar-name {
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#zen-workspaces-button {
|
& #zen-workspaces-button {
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
@@ -38,6 +39,7 @@
|
|||||||
padding: 2px 10px;
|
padding: 2px 10px;
|
||||||
width: calc(100% - var(--zen-tabbrowser-padding) * 8) !important;
|
width: calc(100% - var(--zen-tabbrowser-padding) * 8) !important;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Workspaces Panel UI */
|
/* Workspaces Panel UI */
|
||||||
|
@@ -15,6 +15,12 @@ const kZenColors = [
|
|||||||
"#d4bbff",
|
"#d4bbff",
|
||||||
];
|
];
|
||||||
|
|
||||||
|
const kZenOSToSmallName = {
|
||||||
|
WINNT: "windows",
|
||||||
|
Darwin: "macos",
|
||||||
|
Linux: "linux",
|
||||||
|
};
|
||||||
|
|
||||||
var gZenMarketplaceManager = {
|
var gZenMarketplaceManager = {
|
||||||
init() {
|
init() {
|
||||||
this._buildThemesList();
|
this._buildThemesList();
|
||||||
@@ -70,12 +76,45 @@ var gZenMarketplaceManager = {
|
|||||||
return this._themes;
|
return this._themes;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
get currentOperatingSystem() {
|
||||||
|
let os = Services.appinfo.OS;
|
||||||
|
return kZenOSToSmallName[os];
|
||||||
|
},
|
||||||
|
|
||||||
|
_getValidPreferences(preferences) {
|
||||||
|
for (let key in preferences) {
|
||||||
|
// [!][os:]key
|
||||||
|
let restOfPreferences = key;
|
||||||
|
let isNegation = false;
|
||||||
|
if (key.startsWith("!")) {
|
||||||
|
isNegation = true;
|
||||||
|
restOfPreferences = key.slice(1);
|
||||||
|
}
|
||||||
|
let os = "";
|
||||||
|
if (restOfPreferences.includes(":")) {
|
||||||
|
[os, restOfPreferences] = restOfPreferences.split(":");
|
||||||
|
}
|
||||||
|
if (isNegation && os === this.currentOperatingSystem) {
|
||||||
|
delete preferences[key];
|
||||||
|
} else if (os && os !== this.currentOperatingSystem) {
|
||||||
|
delete preferences[key];
|
||||||
|
} else {
|
||||||
|
// Change the key to contain only the rest of the preferences.
|
||||||
|
preferences[restOfPreferences] = preferences[key];
|
||||||
|
if (key !== restOfPreferences) {
|
||||||
|
delete preferences[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return preferences;
|
||||||
|
},
|
||||||
|
|
||||||
async _getThemePreferences(theme) {
|
async _getThemePreferences(theme) {
|
||||||
const themePath = PathUtils.join(this.themesRootPath, theme.id, "preferences.json");
|
const themePath = PathUtils.join(this.themesRootPath, theme.id, "preferences.json");
|
||||||
if (!(await IOUtils.exists(themePath)) || !theme.preferences) {
|
if (!(await IOUtils.exists(themePath)) || !theme.preferences) {
|
||||||
return {};
|
return {};
|
||||||
}
|
}
|
||||||
return await IOUtils.readJSON(themePath);
|
return this._getValidPreferences(await IOUtils.readJSON(themePath));
|
||||||
},
|
},
|
||||||
|
|
||||||
async _buildThemesList() {
|
async _buildThemesList() {
|
||||||
@@ -144,10 +183,43 @@ var gZenLooksAndFeel = {
|
|||||||
init() {
|
init() {
|
||||||
this._initializeColorPicker(this._getInitialAccentColor());
|
this._initializeColorPicker(this._getInitialAccentColor());
|
||||||
window.zenPageAccentColorChanged = this._handleAccentColorChange.bind(this);
|
window.zenPageAccentColorChanged = this._handleAccentColorChange.bind(this);
|
||||||
|
this._initializeTabbarExpandForm();
|
||||||
gZenThemeBuilder.init();
|
gZenThemeBuilder.init();
|
||||||
gZenMarketplaceManager.init();
|
gZenMarketplaceManager.init();
|
||||||
},
|
},
|
||||||
|
|
||||||
|
_initializeTabbarExpandForm() {
|
||||||
|
const form = document.getElementById("zen-expand-tabbar-strat");
|
||||||
|
const radios = form.querySelectorAll("input[type=radio]");
|
||||||
|
const onHoverPref = "zen.view.sidebar-expanded.on-hover";
|
||||||
|
const defaultExpandPref = "zen.view.sidebar-expanded";
|
||||||
|
if (Services.prefs.getBoolPref(onHoverPref)) {
|
||||||
|
form.querySelector("input[value=\"hover\"]").checked = true;
|
||||||
|
} else if (Services.prefs.getBoolPref(defaultExpandPref)) {
|
||||||
|
form.querySelector("input[value=\"expand\"]").checked = true;
|
||||||
|
} else {
|
||||||
|
form.querySelector("input[value=\"none\"]").checked = true;
|
||||||
|
}
|
||||||
|
for (let radio of radios) {
|
||||||
|
radio.addEventListener("change", e => {
|
||||||
|
switch (e.target.value) {
|
||||||
|
case "expand":
|
||||||
|
Services.prefs.setBoolPref(onHoverPref, false);
|
||||||
|
Services.prefs.setBoolPref(defaultExpandPref, true);
|
||||||
|
break;
|
||||||
|
case "none":
|
||||||
|
Services.prefs.setBoolPref(onHoverPref, false);
|
||||||
|
Services.prefs.setBoolPref(defaultExpandPref, false);
|
||||||
|
break;
|
||||||
|
case "hover":
|
||||||
|
Services.prefs.setBoolPref(onHoverPref, true);
|
||||||
|
Services.prefs.setBoolPref(defaultExpandPref, true);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
}
|
||||||
|
},
|
||||||
|
|
||||||
_initializeColorPicker(accentColor) {
|
_initializeColorPicker(accentColor) {
|
||||||
let elem = document.getElementById("zenLooksAndFeelColorOptions");
|
let elem = document.getElementById("zenLooksAndFeelColorOptions");
|
||||||
elem.innerHTML = "";
|
elem.innerHTML = "";
|
||||||
|
@@ -96,9 +96,23 @@
|
|||||||
<checkbox id="zenLooksAndFeelShowTabExpandButton"
|
<checkbox id="zenLooksAndFeelShowTabExpandButton"
|
||||||
data-l10n-id="zen-vertical-tabs-show-expand-button"
|
data-l10n-id="zen-vertical-tabs-show-expand-button"
|
||||||
preference="zen.view.sidebar-expanded.show-button"/>
|
preference="zen.view.sidebar-expanded.show-button"/>
|
||||||
<checkbox id="zenLooksAndFeelExpandTabsByDefault"
|
|
||||||
data-l10n-id="zen-vertical-tabs-expand-tabs-by-default"
|
<label><html:h2 data-l10n-id="zen-vertical-tabs-expand-tabs-header"/></label>
|
||||||
preference="zen.view.sidebar-expanded"/>
|
<description class="description-deemphasized" data-l10n-id="zen-vertical-tabs-expand-tabs-description" />
|
||||||
|
<form xmlns="http://www.w3.org/1999/xhtml" id="zen-expand-tabbar-strat" autocomplete="off" class="indent">
|
||||||
|
<hbox>
|
||||||
|
<input type="radio" name="zen-expand-tabbar-value" value="expand" data-l10n-id="zen-vertical-tabs-expand-tabs-by-default" />
|
||||||
|
<span data-l10n-id="zen-vertical-tabs-expand-tabs-by-default" />
|
||||||
|
</hbox>
|
||||||
|
<hbox>
|
||||||
|
<input type="radio" name="zen-expand-tabbar-value" value="hover" data-l10n-id="zen-vertical-tabs-expand-tabs-on-hover" />
|
||||||
|
<span data-l10n-id="zen-vertical-tabs-expand-tabs-on-hover" />
|
||||||
|
</hbox>
|
||||||
|
<hbox>
|
||||||
|
<input type="radio" name="zen-expand-tabbar-value" value="none" data-l10n-id="zen-vertical-tabs-dont-expand-tabs-by-default" />
|
||||||
|
<span data-l10n-id="zen-vertical-tabs-dont-expand-tabs-by-default" />
|
||||||
|
</hbox>
|
||||||
|
</form>
|
||||||
</groupbox>
|
</groupbox>
|
||||||
|
|
||||||
</html:template>
|
</html:template>
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
diff --git a/browser/components/tabbrowser/content/tabs.js b/browser/components/tabbrowser/content/tabs.js
|
diff --git a/browser/components/tabbrowser/content/tabs.js b/browser/components/tabbrowser/content/tabs.js
|
||||||
index e9aa0f03c26dc26e1a2e56d28fadb70e60c8e8ca..9c209752b01bd07a3f38452da4bc8efc7433466c 100644
|
index e9aa0f03c26dc26e1a2e56d28fadb70e60c8e8ca..f66f9c168ab560e41ea9d03c2d0727e4a5c15132 100644
|
||||||
--- a/browser/components/tabbrowser/content/tabs.js
|
--- a/browser/components/tabbrowser/content/tabs.js
|
||||||
+++ b/browser/components/tabbrowser/content/tabs.js
|
+++ b/browser/components/tabbrowser/content/tabs.js
|
||||||
@@ -552,19 +552,36 @@
|
@@ -552,19 +552,36 @@
|
||||||
@@ -146,6 +146,15 @@ index e9aa0f03c26dc26e1a2e56d28fadb70e60c8e8ca..9c209752b01bd07a3f38452da4bc8efc
|
|||||||
children.pop();
|
children.pop();
|
||||||
this._allTabs = children;
|
this._allTabs = children;
|
||||||
return children;
|
return children;
|
||||||
|
@@ -1386,7 +1430,7 @@
|
||||||
|
let tabsToReset = [];
|
||||||
|
for (let i = numPinned; i < tabs.length; i++) {
|
||||||
|
let tab = tabs[i];
|
||||||
|
- tab.style.setProperty("max-width", aTabWidth, "important");
|
||||||
|
+ //tab.style.setProperty("max-width", aTabWidth, "important");
|
||||||
|
if (!isEndTab) {
|
||||||
|
// keep tabs the same width
|
||||||
|
tab.style.transition = "none";
|
||||||
@@ -1476,11 +1520,11 @@
|
@@ -1476,11 +1520,11 @@
|
||||||
for (let i = numPinned - 1; i >= 0; i--) {
|
for (let i = numPinned - 1; i >= 0; i--) {
|
||||||
let tab = tabs[i];
|
let tab = tabs[i];
|
||||||
|
@@ -18,7 +18,6 @@ ChromeUtils.defineModuleGetter(
|
|||||||
|
|
||||||
Services.scriptloader.loadSubScript("chrome://browser/content/ZenUIManager.mjs");
|
Services.scriptloader.loadSubScript("chrome://browser/content/ZenUIManager.mjs");
|
||||||
|
|
||||||
const kWelcomeURL = 'https://www.zen-browser.app/welcome';
|
|
||||||
const kWelcomeSeenPref = 'zen.welcomeScreen.seen'
|
const kWelcomeSeenPref = 'zen.welcomeScreen.seen'
|
||||||
|
|
||||||
// =============================================================================
|
// =============================================================================
|
||||||
@@ -288,19 +287,12 @@ class Pages {
|
|||||||
Services.prefs.setBoolPref(kWelcomeSeenPref, true)
|
Services.prefs.setBoolPref(kWelcomeSeenPref, true)
|
||||||
|
|
||||||
close();
|
close();
|
||||||
this._openWelcomePage();
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
this._displayCurrentPage()
|
this._displayCurrentPage()
|
||||||
}
|
}
|
||||||
|
|
||||||
_openWelcomePage() {
|
|
||||||
gZenUIManager.openAndChangeToTab(kWelcomeURL, {
|
|
||||||
inBackground: true,
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
_displayCurrentPage() {
|
_displayCurrentPage() {
|
||||||
let progress = document.getElementById('circular-progress');
|
let progress = document.getElementById('circular-progress');
|
||||||
progress.style.setProperty('--progress', ((this.currentPage + 1) / this.pages.length) * 100);
|
progress.style.setProperty('--progress', ((this.currentPage + 1) / this.pages.length) * 100);
|
||||||
|
@@ -1,5 +1,5 @@
|
|||||||
|
|
||||||
pane-zen-looks-title = Look And Feel
|
pane-zen-looks-title = Look and Feel
|
||||||
category-zen-looks =
|
category-zen-looks =
|
||||||
.tooltiptext = { pane-zen-looks-title }
|
.tooltiptext = { pane-zen-looks-title }
|
||||||
|
|
||||||
@@ -46,16 +46,18 @@ zen-settings-workspaces-enabled =
|
|||||||
|
|
||||||
pane-zen-theme-title = Theme Settings
|
pane-zen-theme-title = Theme Settings
|
||||||
|
|
||||||
zen-look-and-feel-urlbar-header = Awesome Bar Settings
|
|
||||||
zen-look-and-feel-urlbar-description = Customize the look and feel of the Awesome Bar
|
|
||||||
|
|
||||||
zen-vertical-tabs-title = Sidebar and tabs layout
|
zen-vertical-tabs-title = Sidebar and tabs layout
|
||||||
zen-vertical-tabs-header = Vertical Tabs
|
zen-vertical-tabs-header = Vertical Tabs
|
||||||
zen-vertical-tabs-description = Manage your tabs in a vertical layout
|
zen-vertical-tabs-description = Manage your tabs in a vertical layout
|
||||||
zen-vertical-tabs-show-expand-button =
|
zen-vertical-tabs-show-expand-button =
|
||||||
.label = Show Expand Button
|
.label = Show Expand Button
|
||||||
zen-vertical-tabs-expand-tabs-by-default =
|
|
||||||
.label = Expand Tabs by Default
|
zen-vertical-tabs-expand-tabs-by-default = Expand Tabs by Default
|
||||||
|
zen-vertical-tabs-dont-expand-tabs-by-default = Don't Expand Tabs by Default
|
||||||
|
zen-vertical-tabs-expand-tabs-on-hover = Expand Tabs on Hover (Wont work on compact mode)
|
||||||
|
|
||||||
|
zen-vertical-tabs-expand-tabs-header = How to expand tabs
|
||||||
|
zen-vertical-tabs-expand-tabs-description = Choose how to expand tabs in the sidebar
|
||||||
|
|
||||||
zen-theme-marketplace-header = Theme Store
|
zen-theme-marketplace-header = Theme Store
|
||||||
zen-theme-marketplace-description = Find and install themes from the store.
|
zen-theme-marketplace-description = Find and install themes from the store.
|
||||||
|
@@ -17,6 +17,10 @@
|
|||||||
margin: auto;
|
margin: auto;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
description {
|
||||||
|
margin-top: 0 !important;
|
||||||
|
}
|
||||||
|
|
||||||
groupbox {
|
groupbox {
|
||||||
background: light-dark(white, color-mix(in srgb, var(--zen-primary-color) 10%, #1b1b1b 90%));
|
background: light-dark(white, color-mix(in srgb, var(--zen-primary-color) 10%, #1b1b1b 90%));
|
||||||
padding-inline: unset !important;
|
padding-inline: unset !important;
|
||||||
@@ -132,6 +136,15 @@ groupbox h2 {
|
|||||||
|
|
||||||
/* Look and feel */
|
/* Look and feel */
|
||||||
|
|
||||||
|
#zen-expand-tabbar-strat {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
|
||||||
|
#zen-expand-tabbar-strat > hbox {
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
#category-zen-looks > .category-icon {
|
#category-zen-looks > .category-icon {
|
||||||
list-style-image: url("chrome://browser/skin/customize.svg");
|
list-style-image: url("chrome://browser/skin/customize.svg");
|
||||||
}
|
}
|
||||||
|
@@ -3,6 +3,4 @@
|
|||||||
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
- License, v. 2.0. If a copy of the MPL was not distributed with this
|
||||||
- file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
- file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
-->
|
-->
|
||||||
<svg width="16" height="16" xmlns="http://www.w3.org/2000/svg" fill="context-fill" fill-opacity="context-fill-opacity">
|
<svg id="a" xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="context-fill" fill-opacity="context-fill-opacity"><path d="M14.7498,13.0913c-.0154.9253-.7896,1.6587-1.715,1.6587h-6.956c-.2705,0-.4541-.275-.3505-.5248l.0024-.0057c.4574-1.1044,1.1996-2.0362,2.1473-2.7161.1179-.0846.2601-.1284.4052-.1284h4.7793c.9416,0,1.703.7711,1.6873,1.7163Z"/><path d="M9.9212,1.25c.2705,0,.4541.275.3505.5248l-.0024.0057c-.4574,1.1044-1.1996,2.0362-2.1473,2.7161-.1179.0846-.2601.1284-.4052.1284H2.9653c-.9254,0-1.6996-.7334-1.715-1.6587-.0158-.9452.7457-1.7163,1.6873-1.7163h6.9837Z"/><path d="M2.9372,14.75c-.2152,0-.4339-.0414-.6451-.1289-.861-.3566-1.2699-1.3437-.9132-2.2047.5485-1.3241,1.3346-2.5112,2.3367-3.5283,1.0381-1.0537,2.2623-1.877,3.6387-2.4471,1.8919-.7837,3.3654-2.2571,4.149-4.149.3566-.861,1.3437-1.2698,2.2047-.9132.861.3566,1.2699,1.3437.9132,2.2047-.5485,1.3241-1.3346,2.5112-2.3367,3.5283-1.0381,1.0537-2.2623,1.877-3.6387,2.4471-1.8919.7837-3.3654,2.2571-4.149,4.149-.2691.6498-.8975,1.0421-1.5596,1.0421Z"/></svg>
|
||||||
<path d="M10.39 0C8.948.788 7.987 2.025 7.767 3.66c-1.017.162-1.768.781-1.768.781s.72-.44 1.736-.511a4.04 4.04 0 0 1 3.789 2.034s-.758-.62-1.928-.468c1.315.68 1.872 2.002 1.701 3.369-.17 1.367-1.183 2.435-2.354 2.723-1.171.287-2.333.099-3.229-.61-.896-.708-1.251-1.533-1.305-2.254.213-.533.541-.812 1.1-1.092.558-.279 1.422-.283 1.572-.283s.8-.507.95-.894c-.726-.363-1.292-.65-1.696-.934-.404-.283-.492-.534-1.012-.898-.307-1.006-.021-1.955-.021-1.955s-1.043.437-1.93 1.49c0 0-.342-.338-.28-2.006-.427.155-1.366 1.004-1.947 1.92a7.277 7.277 0 0 0-.798 1.723A8.296 8.296 0 0 0-.003 8a8 8 0 0 0 16 0c0-2.256-.93-4.252-2.188-5.002 0 0 .542.932.813 2.43-.4-1.04-1.235-2.166-1.877-2.844-.643-.678-2.068-1.88-2.357-2.584z"/>
|
|
||||||
</svg>
|
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.2 KiB |
@@ -27,7 +27,7 @@
|
|||||||
"brandShortName": "Zen Browser",
|
"brandShortName": "Zen Browser",
|
||||||
"brandFullName": "Zen Browser",
|
"brandFullName": "Zen Browser",
|
||||||
"release": {
|
"release": {
|
||||||
"displayVersion": "1.0.0-a.23",
|
"displayVersion": "1.0.0-a.24",
|
||||||
"github": {
|
"github": {
|
||||||
"repo": "zen-browser/desktop"
|
"repo": "zen-browser/desktop"
|
||||||
},
|
},
|
||||||
|