Skip to content

Commit

Permalink
PreviewDialog: send theme based on darkMode to the DocViewer config
Browse files Browse the repository at this point in the history
  • Loading branch information
warpdesign committed Apr 25, 2024
1 parent 79a3ef0 commit 0ac54dc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/dialogs/PreviewDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const darkTheme = {
tertiary: Colors.DARK_GRAY3,
textPrimary: Colors.WHITE,
textSecondary: Colors.LIGHT_GRAY1,
textTertiary: Colors.LIGHT_GRAY5,
textTertiary: Colors.GRAY2,
disableThemeScrollbar: true,
}

Expand Down Expand Up @@ -114,6 +114,7 @@ export const PreviewDialog = observer(() => {
noRenderer: {
overrideComponent: NoPreviewRenderer,
},
txtCodeTheme: settingsState.isDarkModeActive ? 'nord' : 'xcode',
}}
documents={docs}
initialActiveDocument={activeDocument}
Expand Down

0 comments on commit 0ac54dc

Please sign in to comment.