mirror of
https://github.com/zen-browser/desktop.git
synced 2026-01-31 00:54:38 +00:00
Merge branch 'dev' of https://github.com/zen-browser/desktop into dev
This commit is contained in:
@@ -43,7 +43,7 @@ pane-settings-workspaces-title = Espais de treball
|
||||
zen-tabs-unloader-enabled =
|
||||
.label = Habilita la hibernació de pestanyes
|
||||
zen-look-and-feel-compact-toolbar-themed =
|
||||
.label = Use themed background for compact toolbar
|
||||
.label = Utilitza un fons temàtic per a la barra d'eines compacta
|
||||
zen-workspace-continue-where-left-off =
|
||||
.label = Continua on ho vau deixar
|
||||
pane-zen-pinned-tab-manager-title = Pestanyes fixades
|
||||
|
||||
@@ -221,7 +221,7 @@ zen-key-exit-full-screen = Salir de pantalla completa
|
||||
zen-ai-chatbot-sidebar-shortcut = Alternar barra lateral del chatbot de IA
|
||||
zen-key-inspector-mac = Alternar inspector (Mac)
|
||||
zen-toggle-sidebar-shortcut = Alternar barra lateral de Firefox
|
||||
zen-toggle-pin-tab-shortcut = Toggle Pin Tab
|
||||
zen-toggle-pin-tab-shortcut = Alternar fijar pestaña
|
||||
zen-reader-mode-toggle-shortcut-other = Cambiar a modo lectura
|
||||
zen-picture-in-picture-toggle-shortcut = Cambiar a modo Picture-in-Picture
|
||||
zen-nav-reload-shortcut-2 = Recargar página
|
||||
@@ -255,7 +255,7 @@ zen-close-tab-shortcut = Cerrar pestaña
|
||||
zen-compact-mode-shortcut-show-sidebar = Alternar barra lateral flotante
|
||||
zen-compact-mode-shortcut-show-toolbar = Alternar barra de herramientas flotante
|
||||
zen-compact-mode-shortcut-toggle = Alternar modo compacto
|
||||
zen-glance-expand = Expand Glance
|
||||
zen-glance-expand = Expandir Glance
|
||||
zen-workspace-shortcut-switch-1 = Cambiar a espacio de trabajo 1
|
||||
zen-workspace-shortcut-switch-2 = Cambiar a espacio de trabajo 2
|
||||
zen-workspace-shortcut-switch-3 = Cambiar a espacio de trabajo 3
|
||||
|
||||
@@ -43,7 +43,7 @@ pane-settings-workspaces-title = Spásanna Oibre Eile
|
||||
zen-tabs-unloader-enabled =
|
||||
.label = Cumasaigh Díluchtóir Cluaisíní
|
||||
zen-look-and-feel-compact-toolbar-themed =
|
||||
.label = Use themed background for compact toolbar
|
||||
.label = Úsáid cúlra téamach don bharra uirlisí dlúth
|
||||
zen-workspace-continue-where-left-off =
|
||||
.label = Lean ar aghaidh san áit ar fhág tú
|
||||
pane-zen-pinned-tab-manager-title = Cluaisíní Prionáilte
|
||||
|
||||
@@ -107,9 +107,12 @@ var gZenUIManager = {
|
||||
|
||||
_initCreateNewPopup() {
|
||||
const popup = document.getElementById('zenCreateNewPopup');
|
||||
const button = document.getElementById('zen-create-new-button');
|
||||
|
||||
popup.addEventListener('popupshowing', () => {
|
||||
const button = document.getElementById('zen-create-new-button');
|
||||
if (!button) {
|
||||
return;
|
||||
}
|
||||
const image = button.querySelector('image');
|
||||
button.setAttribute('open', 'true');
|
||||
gZenUIManager.motion.animate(
|
||||
@@ -1102,7 +1105,7 @@ var gZenVerticalTabsManager = {
|
||||
? this._tabEdited.querySelector('.tab-label-container-editing')
|
||||
: this._tabEdited;
|
||||
let input = document.getElementById('tab-label-input');
|
||||
let newName = input.value.trim();
|
||||
let newName = input.value.replace(/\s+/g, ' ').trim();
|
||||
|
||||
document.documentElement.removeAttribute('zen-renaming-tab');
|
||||
input.remove();
|
||||
|
||||
@@ -586,6 +586,7 @@
|
||||
|
||||
.urlbarView-no-wrap {
|
||||
align-items: center !important;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
#urlbar-label-box,
|
||||
@@ -658,4 +659,8 @@
|
||||
& .action-contextualidentity {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.urlbarView[noresults] > .urlbarView-body-outer > .urlbarView-body-inner > & {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -243,16 +243,15 @@ body > #confetti {
|
||||
|
||||
@media (-moz-pref('zen.theme.styled-status-panel')) {
|
||||
#statuspanel {
|
||||
padding: 4px 3px;
|
||||
padding: 6px;
|
||||
|
||||
& > #statuspanel-label {
|
||||
border-radius: 16px !important;
|
||||
border: 1px solid rgba(225, 225, 225, 0.15) !important;
|
||||
padding: 4px 8px 5px 8px !important;
|
||||
font-weight: 600 !important;
|
||||
background: color-mix(in srgb, var(--zen-primary-color), black 80%) !important;
|
||||
color: #f3f3f3 !important;
|
||||
font-size: small !important;
|
||||
background: color-mix(in srgb, var(--zen-primary-color), black 70%) !important;
|
||||
color: rgba(255, 255, 255, 0.8) !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -543,6 +543,7 @@ var gZenCompactModeManager = {
|
||||
const onEnter = (event) => {
|
||||
setTimeout(() => {
|
||||
if (event.type === 'mouseenter' && !event.target.matches(':hover')) return;
|
||||
if (event.target.closest('panel')) return;
|
||||
// Dont register the hover if the urlbar is floating and we are hovering over it
|
||||
this.clearFlashTimeout('has-hover' + target.id);
|
||||
window.requestAnimationFrame(() => {
|
||||
|
||||
@@ -24,39 +24,39 @@
|
||||
<svg width="28" height="28" viewBox="0 0 28 28" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<defs>
|
||||
<linearGradient gradientUnits="userSpaceOnUse" x1="14" y1="5.625" x2="14" y2="22.375" id="gradient-0">
|
||||
<stop offset="0" style="stop-color: rgb(255, 255, 255)"></stop>
|
||||
<stop offset="1" style="stop-color: rgb(0% 0% 0%)"></stop>
|
||||
<stop offset="0" style="stop-color: rgb(255, 255, 255)"/>
|
||||
<stop offset="1" style="stop-color: rgb(0% 0% 0%)"/>
|
||||
</linearGradient>
|
||||
<linearGradient gradientUnits="userSpaceOnUse" x1="14" y1="9.625" x2="14" y2="22.375" id="gradient-1">
|
||||
<stop offset="0" style="stop-color: rgb(255, 255, 255)"></stop>
|
||||
<stop offset="1" style="stop-color: rgb(0% 0% 0%)"></stop>
|
||||
<stop offset="0" style="stop-color: rgb(255, 255, 255)"/>
|
||||
<stop offset="1" style="stop-color: rgb(0% 0% 0%)"/>
|
||||
</linearGradient>
|
||||
</defs>
|
||||
<!--Back Folder (path)-->
|
||||
<path d="M8 5.625H11.9473C12.4866 5.625 13.0105 5.80861 13.4316 6.14551L14.2881 6.83105C14.9308 7.34508 15.7298 7.625 16.5527 7.625H20C21.3117 7.625 22.375 8.68832 22.375 10V20C22.375 21.3117 21.3117 22.375 20 22.375H8C6.68832 22.375 5.625 21.3117 5.625 20V8C5.625 6.68832 6.68832 5.625 8 5.625Z" style="stroke-width: 1.3px; stroke: var(--zen-folder-stroke); fill: var(--zen-folder-behind-bgcolor);">
|
||||
<path d="M8 5.625H11.9473C12.4866 5.625 13.0105 5.80861 13.4316 6.14551L14.2881 6.83105C14.9308 7.34508 15.7298 7.625 16.5527 7.625H20C21.3117 7.625 22.375 8.68832 22.375 10V20C22.375 21.3117 21.3117 22.375 20 22.375H8C6.68832 22.375 5.625 21.3117 5.625 20V8C5.625 6.68832 6.68832 5.625 8 5.625Z" style="fill: var(--zen-folder-behind-bgcolor);">
|
||||
<animateTransform type="skewX" additive="sum" attributeName="transform" values="0;16" begin="0s" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
<animateTransform type="translate" additive="sum" attributeName="transform" values="0 0;-2 3.4" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
<animateTransform type="scale" additive="sum" attributeName="transform" values="1 1;0.85 0.85" begin="0s" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
</path>
|
||||
<path d="M8 5.625H11.9473C12.4866 5.625 13.0105 5.80861 13.4316 6.14551L14.2881 6.83105C14.9308 7.34508 15.7298 7.625 16.5527 7.625H20C21.3117 7.625 22.375 8.68832 22.375 10V20C22.375 21.3117 21.3117 22.375 20 22.375H8C6.68832 22.375 5.625 21.3117 5.625 20V8C5.625 6.68832 6.68832 5.625 8 5.625Z" style="stroke-width: 1.3px; fill: url(#gradient-0); fill-opacity: 0.1;">
|
||||
<path d="M8 5.625H11.9473C12.4866 5.625 13.0105 5.80861 13.4316 6.14551L14.2881 6.83105C14.9308 7.34508 15.7298 7.625 16.5527 7.625H20C21.3117 7.625 22.375 8.68832 22.375 10V20C22.375 21.3117 21.3117 22.375 20 22.375H8C6.68832 22.375 5.625 21.3117 5.625 20V8C5.625 6.68832 6.68832 5.625 8 5.625Z" style="stroke-width: 1.5px; stroke: var(--zen-folder-stroke); fill: url(#gradient-0); fill-opacity: 0.1;">
|
||||
<animateTransform type="skewX" additive="sum" attributeName="transform" values="0;16" begin="0s" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
<animateTransform type="translate" additive="sum" attributeName="transform" values="0 0;-2 3.4" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
<animateTransform type="scale" additive="sum" attributeName="transform" values="1 1;0.85 0.85" begin="0s" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
</path>
|
||||
<!--Front Folder (rect)-->
|
||||
<rect x="5.625" y="9.625" width="16.75" height="12.75" rx="2.375" style="stroke-width: 1.3px; stroke: var(--zen-folder-stroke); fill: var(--zen-folder-front-bgcolor);">
|
||||
<rect x="5.625" y="9.625" width="16.75" height="12.75" rx="2.375" style="fill: var(--zen-folder-front-bgcolor);">
|
||||
<animateTransform type="skewX" additive="sum" attributeName="transform" values="0;-16" begin="0s" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
<animateTransform type="translate" additive="sum" attributeName="transform" values="0 0;11.1 3.4" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
<animateTransform type="scale" additive="sum" attributeName="transform" values="1 1;0.85 0.85" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
</rect>
|
||||
<rect x="5.625" y="9.625" width="16.75" height="12.75" rx="2.375" style="stroke-width: 1.3px; fill: url(#gradient-1); fill-opacity: 0.1;">
|
||||
<rect x="5.625" y="9.625" width="16.75" height="12.75" rx="2.375" style="stroke-width: 1.5px; stroke: var(--zen-folder-stroke); fill: url(#gradient-1); fill-opacity: 0.1;">
|
||||
<animateTransform type="skewX" additive="sum" attributeName="transform" values="0;-16" begin="0s" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
<animateTransform type="translate" additive="sum" attributeName="transform" values="0 0;11.1 3.4" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
<animateTransform type="scale" additive="sum" attributeName="transform" values="1 1;0.85 0.85" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
</rect>
|
||||
<!--Icon (g)-->
|
||||
<g id="folder-icon" style="fill: var(--zen-folder-stroke);">
|
||||
<image href="" height="19" width="20"></image>
|
||||
<image href="" height="19" width="20"/>
|
||||
<animateTransform type="skewX" additive="sum" attributeName="transform" values="0;-16" begin="0s" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
<animateTransform type="translate" additive="sum" attributeName="transform" values="0 0;11.1 3.4" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
<animateTransform type="scale" additive="sum" attributeName="transform" values="1 1;0.85 0.85" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
@@ -68,9 +68,9 @@
|
||||
<animateTransform type="translate" additive="sum" attributeName="transform" values="0 0;11.1 3.4" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
<animateTransform type="scale" additive="sum" attributeName="transform" values="1 1;0.85 0.85" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
<animate attributeName="opacity" values="0;0" dur="0.3s" fill="freeze" keyTimes="0; 1" calcMode="spline" keySplines="0.42 0 0 1"/>
|
||||
<ellipse cx="10" cy="16" rx="1.25" ry="1.25"></ellipse>
|
||||
<ellipse cx="14" cy="16" rx="1.25" ry="1.25"></ellipse>
|
||||
<ellipse cx="18" cy="16" rx="1.25" ry="1.25"></ellipse>
|
||||
<ellipse cx="10" cy="16" rx="1.25" ry="1.25"/>
|
||||
<ellipse cx="14" cy="16" rx="1.25" ry="1.25"/>
|
||||
<ellipse cx="18" cy="16" rx="1.25" ry="1.25"/>
|
||||
</g>
|
||||
</svg>`,
|
||||
'image/svg+xml'
|
||||
@@ -267,7 +267,10 @@
|
||||
|
||||
async #unloadAllActiveTabs(event, noClose = false) {
|
||||
for (const tab of this.tabs) {
|
||||
await gZenPinnedTabManager._onCloseTabShortcut(event, tab, { noClose });
|
||||
await gZenPinnedTabManager._onCloseTabShortcut(event, tab, {
|
||||
noClose,
|
||||
expandSplitViewList: false,
|
||||
});
|
||||
}
|
||||
this.activeTabs = [];
|
||||
}
|
||||
|
||||
@@ -194,7 +194,7 @@ zen-folder {
|
||||
);
|
||||
--zen-folder-stroke: light-dark(
|
||||
color-mix(in srgb, var(--zen-primary-color) 50%, black),
|
||||
color-mix(in srgb, var(--zen-colors-primary) 15%, var(--toolbox-textcolor))
|
||||
color-mix(in srgb, var(--zen-colors-primary) 15%, #ebebeb)
|
||||
);
|
||||
|
||||
-moz-window-dragging: no-drag;
|
||||
|
||||
@@ -174,7 +174,7 @@
|
||||
parentSidebarContainer,
|
||||
{
|
||||
scale: [1, 0.98],
|
||||
opacity: [1, 0.7],
|
||||
opacity: [1, 0.6],
|
||||
},
|
||||
{
|
||||
duration: 0.4,
|
||||
@@ -210,9 +210,9 @@
|
||||
opacity: 1,
|
||||
},
|
||||
{
|
||||
duration: 0.4,
|
||||
duration: 0.3,
|
||||
type: 'spring',
|
||||
bounce: 0.25,
|
||||
bounce: 0.2,
|
||||
}
|
||||
)
|
||||
.then(() => {
|
||||
@@ -322,7 +322,7 @@
|
||||
browserSidebarContainer,
|
||||
{
|
||||
scale: [0.98, 1],
|
||||
opacity: [0.7, 1],
|
||||
opacity: [0.6, 1],
|
||||
},
|
||||
{
|
||||
duration: 0.4,
|
||||
|
||||
@@ -774,6 +774,7 @@
|
||||
behavior = lazy.zenPinnedTabCloseShortcutBehavior,
|
||||
noClose = false,
|
||||
closeIfPending = false,
|
||||
expandSplitViewList = true,
|
||||
} = {}
|
||||
) {
|
||||
try {
|
||||
@@ -826,7 +827,7 @@
|
||||
: selectedTab.group;
|
||||
await gZenFolders.animateUnload(group, selectedTab);
|
||||
let tabsToUnload = [selectedTab];
|
||||
if (selectedTab.group?.hasAttribute('split-view-group')) {
|
||||
if (selectedTab.group?.hasAttribute('split-view-group') && expandSplitViewList) {
|
||||
tabsToUnload = selectedTab.group.tabs;
|
||||
}
|
||||
const allAreUnloaded = tabsToUnload.every(
|
||||
|
||||
@@ -238,7 +238,7 @@
|
||||
--focus-outline-color: transparent;
|
||||
|
||||
@media (-moz-platform: macos) {
|
||||
font-size: 1.3rem; /* Slightly larger font on macOS */
|
||||
font-size: 1.25rem; /* Slightly larger font on macOS */
|
||||
}
|
||||
|
||||
--tab-inner-inline-margin: 0;
|
||||
|
||||
Reference in New Issue
Block a user