1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-24 10:27:10 +02:00

Desktop: Fixes #5710: Text was unreadable in dark mode when dropping a note on Rich Text editor

This commit is contained in:
Laurent Cozic 2021-11-17 19:40:07 +00:00
parent c48d92b18b
commit c759982890

View File

@ -1,3 +1,4 @@
import { ThemeAppearance } from '@joplin/lib/themes/type';
import { NoteBodyEditorProps } from '../../../utils/types';
const { buildStyle } = require('@joplin/lib/theme');
@ -19,8 +20,8 @@ export default function styles(props: NoteBodyEditorProps) {
disabledOverlay: {
zIndex: 10,
position: 'absolute',
backgroundColor: 'white',
opacity: 0.7,
backgroundColor: theme.backgroundColor,
opacity: theme.appearance === ThemeAppearance.Light ? 0.7 : 0.9,
height: '100%',
display: 'flex',
flexDirection: 'column',