mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-28 10:14:12 +00:00
test: Fixed tests and other small QA fixes, b=no-bug, c=common, workspaces
This commit is contained in:
@@ -126,7 +126,12 @@
|
||||
darkModeChange
|
||||
);
|
||||
|
||||
XPCOMUtils.defineLazyPreferenceGetter(this, 'darkModeBias', 'zen.theme.dark-mode-bias', 0.5);
|
||||
XPCOMUtils.defineLazyPreferenceGetter(
|
||||
this,
|
||||
'darkModeBias',
|
||||
'zen.theme.dark-mode-bias',
|
||||
'0.5'
|
||||
);
|
||||
}
|
||||
|
||||
handleDarkModeChange() {
|
||||
@@ -1212,7 +1217,7 @@
|
||||
let lightText = this.getToolbarColor(false); // e.g. [r, g, b, a]
|
||||
|
||||
if (this.canBeTransparent) {
|
||||
lightText[3] -= this.darkModeBias; // Reduce alpha for light text
|
||||
lightText[3] -= parseFloat(this.darkModeBias); // Reduce alpha for light text
|
||||
}
|
||||
|
||||
// Composite text color over background
|
||||
|
||||
@@ -2473,7 +2473,10 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
|
||||
const shouldHideSeparator =
|
||||
pinnedContainer.children.length === 1 ||
|
||||
Array.from(arrowScrollbox.children).filter(
|
||||
(child) => !child.hasAttribute('hidden') && !child.hasAttribute('zen-empty-tab')
|
||||
(child) =>
|
||||
!child.hasAttribute('hidden') &&
|
||||
!child.hasAttribute('bursting') &&
|
||||
!child.hasAttribute('zen-empty-tab')
|
||||
).length <= 1;
|
||||
if (shouldHideSeparator) {
|
||||
pinnedContainer.setAttribute('hide-separator', 'true');
|
||||
@@ -2498,7 +2501,7 @@ var gZenWorkspaces = new (class extends nsZenMultiWindowFeature {
|
||||
for (const entry of entries) {
|
||||
let originalWorkspaceId = entry.target.getAttribute('zen-workspace-id');
|
||||
if (!originalWorkspaceId) {
|
||||
originalWorkspaceId = entry.target.closest('zen-workspace')?.id;
|
||||
originalWorkspaceId = entry.target.closest('zen-workspace')?.id || this.activeWorkspace;
|
||||
}
|
||||
const workspacesIds = [];
|
||||
if (entry.target.closest('#zen-essentials')) {
|
||||
|
||||
Reference in New Issue
Block a user