This commit is contained in:
Mr. M
2025-05-18 11:27:06 +02:00
4 changed files with 14 additions and 7 deletions

View File

@@ -362,7 +362,7 @@ menuseparator {
gap: 10px;
z-index: 1000;
padding: var(--zen-toast-padding);
border-radius: calc(var(--zen-native-inner-radius) + 8px);
border-radius: calc(var(--zen-native-inner-radius) + 6px);
background: linear-gradient(
170deg,
var(--zen-primary-color) -40%,
@@ -398,7 +398,7 @@ menuseparator {
padding: 0 12px !important;
min-width: unset !important;
margin: 0px !important;
border-radius: calc(var(--zen-native-inner-radius) + 4px) !important;
border-radius: calc(var(--zen-native-inner-radius) + 2px) !important;
:root[zen-right-side='true'] & {
order: -1;

View File

@@ -236,8 +236,8 @@
continue;
}
if (pin.title && (pin.editedTitle || tab.hasAttribute('zen-has-static-label'))) {
tab.removeAttribute('zen-has-static-label'); // So we can set it again
if (pin.title && pin.editedTitle) {
gBrowser._setTabLabel(tab, pin.title, { beforeTabOpen: true });
tab.setAttribute('zen-has-static-label', 'true');
}

View File

@@ -58,21 +58,29 @@
set activeIndex(uuid) {
const buttons = this.querySelectorAll('toolbarbutton');
let i = 0;
let selected = 0;
for (const button of buttons) {
if (button.getAttribute('zen-workspace-id') == uuid) {
button.setAttribute('active', 'true');
selected = i;
} else {
button.removeAttribute('active');
}
selected++;
}
buttons[selected].setAttribute('active', true);
this.setAttribute('selected', selected);
}
get activeIndex() {
const selected = this.getAttribute('selected');
const buttons = this.querySelectorAll('toolbarbutton');
let i = 0;
for (const button of buttons) {
if (button.hasAttribute('active')) {
if (i == selected) {
return button.getAttribute('zen-workspace-id');
}
i++;
}
return null;
}

View File

@@ -2412,7 +2412,6 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
});
await this._organizeWorkspaceStripLocations(workspace, true);
gZenUIManager.tabsWrapper.style.scrollbarWidth = '';
this.workspaceIcons.activeIndex = workspace.uuid;
// Notify listeners
if (this._changeListeners?.length) {