A fully open source & end-to-end encrypted note taking alternative to Evernote.
TypeScript asp-net-coredotnet-coreelectronfosshacktoberfestnote-managmentnote-takingnote-taking-appnotebooknotesnotes-appopen-sourceopensourceprivacyproductivityreactreact-nativereactjsself-hosted
fix color scheme not updating in editor
ammarahm-ed8208c8974407
diff --git a/apps/mobile/src/views/Editor/EditorHeader.js b/apps/mobile/src/views/Editor/EditorHeader.jsindex c3b33c9c7..2e2b262c5 100644--- a/apps/mobile/src/views/Editor/EditorHeader.js+++ b/apps/mobile/src/views/Editor/EditorHeader.js@@ -45,8 +45,9 @@ const EditorHeader = () => {const insets = useSafeAreaInsets();useEffect(() => {+ console.log('setting colors');setColors(colors);- }, [colors.bg]);+ }, [colors]);const isLargeTablet = () => {return deviceMode === 'tablet';@@ -111,7 +112,7 @@ const EditorHeader = () => {let note = getNote() && db.notes.note(getNote().id).data;if (note.locked) {ToastEvent.show({- heading: 'Locked not cannot be published',+ heading: 'Locked notes cannot be published',type: 'error',context: 'global',});diff --git a/apps/mobile/src/views/Editor/EditorWrapper.js b/apps/mobile/src/views/Editor/EditorWrapper.jsindex a93c5dfb7..2acf5ff8e 100644--- a/apps/mobile/src/views/Editor/EditorWrapper.js+++ b/apps/mobile/src/views/Editor/EditorWrapper.js@@ -104,7 +104,7 @@ export const EditorWrapper = ({width,dimensions}) => {style={{width: width[deviceMode].c,height: '100%',- backgroundColor: colors.bg,+ backgroundColor: state.colors.bg,borderLeftWidth: 1,borderLeftColor: DDS.isTab ? colors.nav : 'transparent',}}>