mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix: old document edgelessColorTheme shows auto but always render white (#8666)
Fix issue [AF-1593](https://linear.app/affine-design/issue/AF-1593).
This commit is contained in:
@@ -107,7 +107,9 @@ function createThemeExtension(framework: FrameworkProvider) {
|
|||||||
if (cache) return cache;
|
if (cache) return cache;
|
||||||
|
|
||||||
const appTheme$ = framework.get(AppThemeService).appTheme.theme$;
|
const appTheme$ = framework.get(AppThemeService).appTheme.theme$;
|
||||||
const docTheme$ = doc.properties$.map(props => props.edgelessColorTheme);
|
const docTheme$ = doc.properties$.map(
|
||||||
|
props => props.edgelessColorTheme || 'system'
|
||||||
|
);
|
||||||
const theme$: Observable<ColorScheme> = combineLatest([
|
const theme$: Observable<ColorScheme> = combineLatest([
|
||||||
appTheme$,
|
appTheme$,
|
||||||
docTheme$,
|
docTheme$,
|
||||||
|
|||||||
Reference in New Issue
Block a user