You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that when i manually change color palette of system from settings (while app is running in background), the app's color palette is not automatically updated. I could only refresh it by two ways:
Toggle Dark Mode
Restart App
I attached a small clip to demonstrate the bug.
bug.mp4
more interestingly, getPaletteSync() is returning the same old palette even after it's changed, contrary to my assumption that it returns latest palette on each call.
I went through the code a bit (i know very little about android API), this looked interesting..
I cant determine if it's a issue of android API or RN library.
example snippet of my dark mode implementation:
constNavigation=()=>{constisDarkMode=useColorScheme()==='dark';constpalette=useMaterialYouPalette();conststyles=StyleSheet.create({tabBarStyle: {backgroundColor: isDarkMode ? palette.system_accent2[10] : palette.system_accent1[2],height: 75,borderTopWidth: 0,// to remove white line at top of tab navigation},};
Hello,
I noticed that when i manually change color palette of system from settings (while app is running in background), the app's color palette is not automatically updated. I could only refresh it by two ways:
I attached a small clip to demonstrate the bug.
bug.mp4
more interestingly,
getPaletteSync()is returning the same old palette even after it's changed, contrary to my assumption that it returns latest palette on each call.I went through the code a bit (i know very little about android API), this looked interesting..
react-native-material-you/src/index.tsx
Lines 90 to 92 in 73fc6f0
I cant determine if it's a issue of android API or RN library.