mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +00:00
fix(core): update noise image (#5219)
seems https://github.com/toeverything/AFFiNE/pull/4946 not in latest canary.
This commit is contained in:
@@ -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': {
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
}
|
||||
|
||||
:root {
|
||||
--noise-background: url(./noise.png);
|
||||
--noise-background: url(./noise.avif);
|
||||
}
|
||||
|
||||
html,
|
||||
|
||||
BIN
packages/frontend/component/src/theme/noise.avif
Normal file
BIN
packages/frontend/component/src/theme/noise.avif
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 4.0 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 45 KiB |
Reference in New Issue
Block a user