forked from vergnet/application-amicale
Fixed night mode
This commit is contained in:
parent
2b7270bd06
commit
2b21b00ec8
5 changed files with 11 additions and 5 deletions
2
App.js
2
App.js
|
@ -56,7 +56,7 @@ export default class App extends React.Component<Props, State> {
|
||||||
this.setState({
|
this.setState({
|
||||||
currentTheme: ThemeManager.getCurrentTheme()
|
currentTheme: ThemeManager.getCurrentTheme()
|
||||||
});
|
});
|
||||||
// clearThemeCache();
|
clearThemeCache();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -80,8 +80,10 @@ export default class FetchedDataSectionList extends React.Component<Props, State
|
||||||
|
|
||||||
|
|
||||||
componentWillUnmount() {
|
componentWillUnmount() {
|
||||||
this.willBlurSubscription.remove();
|
if (this.willBlurSubscription !== undefined)
|
||||||
this.willFocusSubscription.remove();
|
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>
|
<Text>{dataset[i].title}</Text>
|
||||||
</TabHeading>}
|
</TabHeading>}
|
||||||
key={dataset[i].title}>
|
key={dataset[i].title}
|
||||||
|
style={{backgroundColor: ThemeManager.getCurrentThemeVariables().containerBgColor}}>
|
||||||
{this.getSectionList(
|
{this.getSectionList(
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
|
|
|
@ -261,7 +261,7 @@ export default {
|
||||||
fetchedDataSectionListErrorText : "#acacac",
|
fetchedDataSectionListErrorText : "#acacac",
|
||||||
|
|
||||||
// PROXIWASH
|
// PROXIWASH
|
||||||
proxiwashFinishedColor: "rgba(12,157,13,0.72)",
|
proxiwashFinishedColor: "rgba(17,149,32,0.53)",
|
||||||
proxiwashReadyColor: "transparent",
|
proxiwashReadyColor: "transparent",
|
||||||
proxiwashRunningColor: "rgba(29,59,175,0.65)",
|
proxiwashRunningColor: "rgba(29,59,175,0.65)",
|
||||||
proxiwashBrokenColor: "#000000",
|
proxiwashBrokenColor: "#000000",
|
||||||
|
|
|
@ -7,6 +7,7 @@ import i18n from "i18n-js";
|
||||||
import CustomMaterialIcon from '../components/CustomMaterialIcon';
|
import CustomMaterialIcon from '../components/CustomMaterialIcon';
|
||||||
import FetchedDataSectionList from "../components/FetchedDataSectionList";
|
import FetchedDataSectionList from "../components/FetchedDataSectionList";
|
||||||
import Autolink from 'react-native-autolink';
|
import Autolink from 'react-native-autolink';
|
||||||
|
import ThemeManager from "../utils/ThemeManager";
|
||||||
|
|
||||||
const ICON_AMICALE = require('../assets/amicale.png');
|
const ICON_AMICALE = require('../assets/amicale.png');
|
||||||
const NAME_AMICALE = 'Amicale INSA Toulouse';
|
const NAME_AMICALE = 'Amicale INSA Toulouse';
|
||||||
|
@ -97,6 +98,7 @@ export default class HomeScreen extends FetchedDataSectionList {
|
||||||
<Autolink
|
<Autolink
|
||||||
text={item.message}
|
text={item.message}
|
||||||
hashtag="facebook"
|
hashtag="facebook"
|
||||||
|
style={{color: ThemeManager.getCurrentThemeVariables().textColor}}
|
||||||
/> : <View/>
|
/> : <View/>
|
||||||
}
|
}
|
||||||
</Body>
|
</Body>
|
||||||
|
|
|
@ -337,6 +337,7 @@ export default class ProxiwashScreen extends FetchedDataSectionList {
|
||||||
style={{
|
style={{
|
||||||
height: 64,
|
height: 64,
|
||||||
position: 'absolute',
|
position: 'absolute',
|
||||||
|
zIndex: 10, // Make sure the button is above the text
|
||||||
right: 0,
|
right: 0,
|
||||||
width: '100%'
|
width: '100%'
|
||||||
}}
|
}}
|
||||||
|
|
Loading…
Reference in a new issue