Fixed night mode

This commit is contained in:
keplyx 2019-08-05 14:52:18 +02:00
parent 2b7270bd06
commit 2b21b00ec8
5 changed files with 11 additions and 5 deletions

2
App.js
View file

@ -56,7 +56,7 @@ export default class App extends React.Component<Props, State> {
this.setState({
currentTheme: ThemeManager.getCurrentTheme()
});
// clearThemeCache();
clearThemeCache();
}
/**

View file

@ -80,8 +80,10 @@ export default class FetchedDataSectionList extends React.Component<Props, State
componentWillUnmount() {
this.willBlurSubscription.remove();
this.willFocusSubscription.remove();
if (this.willBlurSubscription !== undefined)
this.willBlurSubscription.remove();
if (this.willFocusSubscription !== undefined)
this.willFocusSubscription.remove();
}
@ -211,7 +213,8 @@ export default class FetchedDataSectionList extends React.Component<Props, State
/>
<Text>{dataset[i].title}</Text>
</TabHeading>}
key={dataset[i].title}>
key={dataset[i].title}
style={{backgroundColor: ThemeManager.getCurrentThemeVariables().containerBgColor}}>
{this.getSectionList(
[
{

View file

@ -261,7 +261,7 @@ export default {
fetchedDataSectionListErrorText : "#acacac",
// PROXIWASH
proxiwashFinishedColor: "rgba(12,157,13,0.72)",
proxiwashFinishedColor: "rgba(17,149,32,0.53)",
proxiwashReadyColor: "transparent",
proxiwashRunningColor: "rgba(29,59,175,0.65)",
proxiwashBrokenColor: "#000000",

View file

@ -7,6 +7,7 @@ import i18n from "i18n-js";
import CustomMaterialIcon from '../components/CustomMaterialIcon';
import FetchedDataSectionList from "../components/FetchedDataSectionList";
import Autolink from 'react-native-autolink';
import ThemeManager from "../utils/ThemeManager";
const ICON_AMICALE = require('../assets/amicale.png');
const NAME_AMICALE = 'Amicale INSA Toulouse';
@ -97,6 +98,7 @@ export default class HomeScreen extends FetchedDataSectionList {
<Autolink
text={item.message}
hashtag="facebook"
style={{color: ThemeManager.getCurrentThemeVariables().textColor}}
/> : <View/>
}
</Body>

View file

@ -337,6 +337,7 @@ export default class ProxiwashScreen extends FetchedDataSectionList {
style={{
height: 64,
position: 'absolute',
zIndex: 10, // Make sure the button is above the text
right: 0,
width: '100%'
}}