fix(core): update noise image (#5219)

seems https://github.com/toeverything/AFFiNE/pull/4946 not in latest canary.
This commit is contained in:
Peng Xiao
2023-12-07 15:11:00 +00:00
parent 761c3c2551
commit 352bb548f0
4 changed files with 4 additions and 4 deletions

View File

@@ -23,7 +23,7 @@ export const appStyle = style({
inset: 0,
opacity: 'var(--affine-noise-opacity, 0)',
backgroundRepeat: 'repeat',
backgroundSize: '2.5%',
backgroundSize: '3%',
// todo: figure out how to use vanilla-extract webpack plugin to inject img url
backgroundImage: `var(--noise-background)`,
},
@@ -32,13 +32,13 @@ export const appStyle = style({
globalStyle(`html[data-theme="light"] ${appStyle}`, {
vars: {
'--affine-noise-opacity': '0.25',
'--affine-noise-opacity': '0.35',
},
});
globalStyle(`html[data-theme="dark"] ${appStyle}`, {
vars: {
'--affine-noise-opacity': '0.1',
'--affine-noise-opacity': '1',
},
'@media': {

View File

@@ -9,7 +9,7 @@
}
:root {
--noise-background: url(./noise.png);
--noise-background: url(./noise.avif);
}
html,

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB