mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-20 06:21:00 +00:00
feat: Improved lightness detection and media sharing controls, b=no-bug, c=media, workspaces
This commit is contained in:
@@ -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();
|
||||
|
||||
@@ -2944,4 +2944,10 @@ var gZenWorkspaces = new (class extends ZenMultiWindowFeature {
|
||||
gBrowser.tabContainer.removeAttribute('overflow');
|
||||
}
|
||||
}
|
||||
|
||||
handleTabCloseWindow() {
|
||||
if (this.shouldCloseWindow()) {
|
||||
document.getElementById('cmd_closeWindow').doCommand();
|
||||
}
|
||||
}
|
||||
})();
|
||||
|
||||
Reference in New Issue
Block a user