Skip to content

There can be more than Notion and Miro. AFFiNE(pronounced [ə‘fain]) is a next-gen knowledge base that brings planning, sorting and creating all together. Privacy first, open-source, customizable and ready to use.

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

Peng Xiao352bb548f0a3
diff --git a/packages/frontend/component/src/components/workspace/index.css.ts b/packages/frontend/component/src/components/workspace/index.css.ts
index 02a86963a5..ce31f3cd35 100644
--- a/packages/frontend/component/src/components/workspace/index.css.ts
+++ b/packages/frontend/component/src/components/workspace/index.css.ts
@@ -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': {
diff --git a/packages/frontend/component/src/theme/global.css b/packages/frontend/component/src/theme/global.css
index 31754752bd..3e9119f8aa 100644
--- a/packages/frontend/component/src/theme/global.css
+++ b/packages/frontend/component/src/theme/global.css
@@ -9,7 +9,7 @@
}
:root {
- --noise-background: url(./noise.png);
+ --noise-background: url(./noise.avif);
}
html,
diff --git a/packages/frontend/component/src/theme/noise.avif b/packages/frontend/component/src/theme/noise.avif
new file mode 100644
index 0000000000..c08002c5bd
Binary files /dev/null and b/packages/frontend/component/src/theme/noise.avif differ
diff --git a/packages/frontend/component/src/theme/noise.png b/packages/frontend/component/src/theme/noise.png
deleted file mode 100644
index 1610efbf3c..0000000000
Binary files a/packages/frontend/component/src/theme/noise.png and /dev/null differ