perf: Only show gradient blend mode if used and removed unused perf configs, b=no-bug, c=common, compact-mode, workspaces

This commit is contained in:
Mr. M
2025-06-08 12:58:10 +02:00
parent fd8a55c57c
commit 35245078c9
5 changed files with 13 additions and 25 deletions

View File

@@ -969,9 +969,14 @@
texture,
};
}
//TODO: add a better noise system that adds noise not just changes transparency
updateNoise(texture) {
document.documentElement.style.setProperty('--zen-grainy-background-opacity', texture);
document.documentElement.setAttribute(
'zen-show-grainy-background',
texture > 0 ? 'true' : 'false'
);
}
hexToRgb(hex) {