mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-01 05:11:52 +00:00
feat: Prevent infinite loop of restarts and add dark mode legacy version, b=no-bug, c=common, workspaces
This commit is contained in:
@@ -1070,6 +1070,10 @@
|
||||
} else {
|
||||
color = color.c;
|
||||
}
|
||||
if (this.isLegacyVersion && this.isDarkMode) {
|
||||
// In legacy version, we blend with white overlay or black overlay based on if we are in dark mode
|
||||
color = this.blendColors(color, [0, 0, 0], 30);
|
||||
}
|
||||
return this.blendWithWhiteOverlay(color, opacity);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user