fmidev / weather-app

FMI's official weather application for mobile devices
7 stars 2 forks source link

Move color settings to theme #643

Open AnttiRumpunen opened 4 weeks ago

AnttiRumpunen commented 4 weeks ago

For example in TabNavigator.tsx headerTintColor is set in the following manner (line 207).

{code} headerTintColor: useDarkTheme ? WHITE : PRIMARY_BLUE, {code}

Jamaican version does not have dark theme, but it has blue header background for some reason. In any case, instead of setting color values, get them from theme. Add headerTintColor to theme -settings.

Check other color settings as well that they are read from theme instead of using fixed values.