Closed JasonIsAzn closed 2 weeks ago
This should probably be implemented by taking the phone setting on user creation and then keep that info in privateUserInfo
. That way, if for whatever reason a user wants to change it to the other display mode, they can.
Bonus: less code to write!
ended up doing this: 6f8704a
But does require this which is a bit messy:
const userContext = useContext(UserContext); const { userInfo } = userContext!; const fixDarkMode = userInfo?.private?.privateInfo?.settings?.darkMode; const useSystemDefault = userInfo?.private?.privateInfo?.settings?.useSystemDefault; const colorScheme = useColorScheme(); const darkMode = useSystemDefault ? colorScheme === 'dark' : fixDarkMode;
Overview
Implement dark and light mode to sync with phone settings