feat: Make sure to correct system accent color, b=no-bug, c=common, compact-mode, tabs, workspaces

This commit is contained in:
Mr. M
2025-10-16 23:19:50 +02:00
parent 9ae85f962a
commit 7e565b9029
7 changed files with 49 additions and 18 deletions

View File

@@ -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);
}