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 colorScheme controls
ammarahm-ede371b02e764b
diff --git a/apps/mobile/src/components/ActionSheetComponent/index.js b/apps/mobile/src/components/ActionSheetComponent/index.jsindex 00a4d20c3..fdbc1442c 100644--- a/apps/mobile/src/components/ActionSheetComponent/index.js+++ b/apps/mobile/src/components/ActionSheetComponent/index.js@@ -13,11 +13,12 @@ import {opacity,COLOR_SCHEME_DARK,COLOR_SCHEME_LIGHT,+ COLOR_SCHEME,+ ACCENT,} from '../../common/common';import Icon from 'react-native-vector-icons/Feather';import NavigationService from '../../services/NavigationService';import {db} from '../../../App';-import {useAppContext} from '../../provider/useAppContext';import FastStorage from 'react-native-fast-storage';import {useTracked} from '../../provider';const w = Dimensions.get('window').width;@@ -38,7 +39,12 @@ export const ActionSheetComponent = ({// Todo- const changeColorScheme = () => {};+ function changeColorScheme(colors = COLOR_SCHEME, accent = ACCENT) {+ let newColors = setColorScheme(colors, accent);+ StatusBar.setBarStyle(newColors.night ? 'light-content' : 'dark-content');++ dispatch({type: ACTIONS.THEME, colors: newColors});+ }const [focused, setFocused] = useState(false);const [note, setNote] = useState(