feat: Improved lightness detection and media sharing controls, b=no-bug, c=media, workspaces

This commit is contained in:
mr. m
2025-07-05 22:59:43 +02:00
parent 1a3a8a09e1
commit e068428601
5 changed files with 13 additions and 13 deletions

View File

@@ -1140,7 +1140,7 @@
}
shouldBeDarkMode(accentColor) {
let minimalLum = 0.5;
let minimalLum = 0.6;
if (!this.canBeTransparent) {
// Blend the color with the toolbar background
const toolbarBg = this.getToolbarModifiedBaseRaw();

View File

@@ -2944,4 +2944,10 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
gBrowser.tabContainer.removeAttribute('overflow');
}
}
handleTabCloseWindow() {
if (this.shouldCloseWindow()) {
document.getElementById('cmd_closeWindow').doCommand();
}
}
})();