Skip to content

Commit

Permalink
fix: old document edgelessColorTheme shows auto but always render whi…
Browse files Browse the repository at this point in the history
  • Loading branch information
akumatus committed Nov 1, 2024
1 parent aa2f6b7 commit 7e71395
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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$,
Expand Down

0 comments on commit 7e71395

Please sign in to comment.