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
add option to disable animations
ammarahm-ede491b95ab6c1
diff --git a/apps/mobile/src/services/SettingsService.js b/apps/mobile/src/services/SettingsService.jsindex ce37440db..6acd9df99 100644--- a/apps/mobile/src/services/SettingsService.js+++ b/apps/mobile/src/services/SettingsService.js@@ -5,6 +5,7 @@ import { Actions } from '../provider/Actions';import { useSettingStore } from '../provider/stores';import { AndroidModule } from '../utils';import { getColorScheme } from '../utils/ColorUtils';+import layoutmanager from '../utils/layout-manager';import { MMKV } from '../utils/mmkv';import { scale, updateSize } from '../utils/SizeUtils';import Notifications from './Notifications';@@ -28,7 +29,8 @@ export const defaultSettings = {notesListMode: 'normal',devMode:false,notifNotes:false,- pitchBlack:false+ pitchBlack:false,+ reduceAnimations:false};let settings = {...defaultSettings};diff --git a/apps/mobile/src/views/Settings/appearance.js b/apps/mobile/src/views/Settings/appearance.jsindex c47f54507..13a83386b 100644--- a/apps/mobile/src/views/Settings/appearance.js+++ b/apps/mobile/src/views/Settings/appearance.js@@ -85,6 +85,13 @@ const SettingsAppearanceSection = () => {}};+ const reduceAnimations = async () => {+ await SettingsService.set(+ 'reduceAnimations',+ SettingsService.get().reduceAnimations ? false : true+ );+ };+return (<><SectionHeader@@ -223,6 +230,23 @@ const SettingsAppearanceSection = () => {}/>+ <CustomButton+ title="Reduce animations"+ tagline="Enable this to reduce animations in the app."+ onPress={reduceAnimations}+ maxWidth="90%"+ customComponent={+ <ToggleSwitch+ isOn={settings.reduceAnimations}+ onColor={colors.accent}+ offColor={colors.icon}+ size="small"+ animationSpeed={150}+ onToggle={reduceAnimations}+ />+ }+ />+<CustomButtontitle="Dark mode"tagline="Switch on dark mode at night to protect your eyes."