mirror of
https://github.com/zen-browser/desktop.git
synced 2026-08-29 09:51:33 +00:00
feat: Make sure to correct system accent color, b=no-bug, c=common, compact-mode, tabs, workspaces
This commit is contained in:
@@ -1531,6 +1531,13 @@
|
||||
'color'
|
||||
];
|
||||
rgb = rawRgb.match(/\d+/g).map(Number);
|
||||
// Match our theme a bit more, since we can't always expect the OS
|
||||
// to give us a color matching our theme scheme
|
||||
rgb = this.blendColors(
|
||||
rgb,
|
||||
this.getToolbarModifiedBaseRaw().slice(0, 3),
|
||||
this.isDarkMode ? 80 : 50
|
||||
);
|
||||
} else {
|
||||
rgb = this.hexToRgb(accentColor);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user