Brandon Presley
94a5fa4ac7
Remove track color setting from Switch
...
This must have been considered a bug in the
React Native Paper codebase, but this was me fixing
the track color being wrong when system theme and app
theme weren't the same.
2023-08-22 11:53:12 +12:00
Brandon Presley
f778426aba
Run prettier
...
Something happened with the deno formatter,
I can't remember what! Hahahahahaahahaha
2023-08-12 15:23:02 +12:00
Brandon Presley
9833752bab
Deno fmt
2023-07-20 14:55:19 +12:00
Brandon Presley
89606b9d21
Fix type errors related to upgrade
2023-07-15 14:38:46 +12:00
Brandon Presley
4303fe2cc4
Use deno fmt instead of prettier
2023-06-27 15:16:59 +12:00
Brandon Presley
a9000898f3
Replace children with title for Switch
...
Apparently, the children prop makes React.memo
not work any more. I read about it in
https://stackoverflow.com/questions/53074551/when-should-you-not-use-react-memo
2022-12-30 19:49:54 +13:00
Brandon Presley
dd7cb0406b
Use React.memo for Switch
2022-12-30 19:42:30 +13:00
Brandon Presley
051df31925
Fix inactive track color on mismatched themes
...
Before if your system theme was dark and your app
theme was set to light, the track colors were wrong.
2022-12-29 19:30:26 +13:00
Brandon Presley
48432188c3
Simplify Switch.tsx
2022-12-24 19:55:38 +13:00
Brandon Presley
ecece9bbcd
Add slight margin to switches for ios
...
I don't know why the android one has margins
without me specifying to do so...
2022-11-21 18:33:05 +13:00
Brandon Presley
b68f903a1c
Remove custom color calculation from Switch
2022-11-08 12:37:24 +13:00
Brandon Presley
1a53fa324b
Remove redundant Color context
...
Settings already stores the color set by the user.
2022-10-31 21:32:33 +13:00
Brandon Presley
bc7aca03e8
Remove semicolons from line endings
2022-10-31 17:22:08 +13:00
Brandon Presley
e6dcd4a47e
Use hermes engine
...
https://reactnative.dev/docs/hermes
2022-10-28 18:36:47 +13:00
Brandon Presley
8461f86e88
Wrap color context with useColor custom hook
...
I find it easier to import hooks by useX instead of
useContext(X). Like how the navigation library is just
useNavigation
2022-10-14 17:24:02 +13:00
Brandon Presley
eb53d58991
Add ability to set app theme
...
Closes #79
2022-10-04 14:35:56 +13:00
Brandon Presley
91c0430760
Factor out massive switch
2022-09-26 16:10:13 +13:00