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({
|
||||
currentTheme: ThemeManager.getCurrentTheme()
|
||||
});
|
||||
// clearThemeCache();
|
||||
clearThemeCache();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -80,7 +80,9 @@ export default class FetchedDataSectionList extends React.Component<Props, State
|
|||
|
||||
|
||||
componentWillUnmount() {
|
||||
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(
|
||||
[
|
||||
{
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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%'
|
||||
}}
|
||||
|
|
Loading…
Reference in a new issue