David Lechner
b2b173e103
utils/os: add Linux and iOS
...
Also update to navigator.userAgentData to avoid warnings from chromium.
2022-07-15 12:37:36 -05:00
David Lechner
9518a21241
settings: replace darkMode with useDarkMode hook
...
This is a minor breaking change for users that don't have dark mode
set to the default value since the localStorage key has changed (hard-
coded in 3rd party library).
2022-03-14 16:39:17 -05:00
David Lechner
56c739fa08
os: add isAndroid() function
...
This will be used to test if the app is running on Android.
2021-08-12 15:55:24 -05:00
David Lechner
c3851e7139
tests: use matchMedia polyfill
...
This makes testing code that uses window.matchMedia() work better since
it mocks it globally.
2021-07-02 20:59:09 -05:00
David Lechner
956b6f3c96
firmware: add windows BLE hacks
...
This works around some issues that have been observed on a specific
Windows computer.
Issue: https://github.com/pybricks/support/issues/256
2021-05-16 16:18:34 -05:00
David Lechner
b38a47f4e6
use os detection for initial dark mode setting
2021-01-15 10:54:57 -06:00
David Lechner
25c0d104a9
convert macOS check to utility function
2021-01-14 15:25:57 -06:00