ground-android
ground-android copied to clipboard
[UI] Dark theme currently not supported
Colors that don't look quite right
- [ ] Toolbar background and nav icon
- [ ] Surface container color, e.g., survey list backround
@sufyanAbbasi Can we force light mode on for now, perhaps like this?
Unfortunately, the solution <item name="android:forceDarkAllowed">false</item> only works on Android >=29, but we are currently targeting 24, most likely for backwards compatibility reasons.
It is possible to make a v29/styles.xml which will presumably apply to those versions or higher, but it looks like the style rules can end up skewing if we're not careful.
Unfortunately, the solution
<item name="android:forceDarkAllowed">false</item>only works on Android >=29, but we are currently targeting 24, most likely for backwards compatibility reasons.It is possible to make a
v29/styles.xmlwhich will presumably apply to those versions or higher, but it looks like the style rules can end up skewing if we're not careful.
Can setDefaultNightMode() be used here
I'll give it a shot!
It actually worked!