mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-12 04:18:54 +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;
|
||||
|
||||
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([
|
||||
appTheme$,
|
||||
docTheme$,
|
||||
|
||||
Reference in New Issue
Block a user