Browse Source

Improved AF

keplyx 4 years ago
parent
commit
1bc0b31283

+ 5
- 1
screens/About/AboutScreen.js View File

@@ -201,7 +201,11 @@ export default class AboutScreen extends React.Component<Props, State> {
201 201
                 <Card.Title
202 202
                     title={appJson.expo.name}
203 203
                     subtitle={appJson.expo.version}
204
-                    left={(props) => <Avatar.Image {...props} source={require('../../assets/android.icon.png')}/>}/>
204
+                    left={(props) => <Avatar.Image
205
+                        {...props}
206
+                        source={require('../../assets/android.icon.png')}
207
+                        style={{backgroundColor: 'transparent'}}
208
+                    />}/>
205 209
                 <Card.Content>
206 210
                     <FlatList
207 211
                         data={this.appData}

+ 0
- 3
screens/Planning/PlanningScreen.js View File

@@ -8,7 +8,6 @@ import WebDataManager from "../../utils/WebDataManager";
8 8
 import PlanningEventManager from '../../utils/PlanningEventManager';
9 9
 import {Avatar, Divider, List} from 'react-native-paper';
10 10
 import CustomAgenda from "../../components/CustomAgenda";
11
-import AprilFoolsManager from "../../utils/AprilFoolsManager";
12 11
 
13 12
 LocaleConfig.locales['fr'] = {
14 13
     monthNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],
@@ -210,8 +209,6 @@ export default class PlanningScreen extends React.Component<Props, State> {
210 209
                 this.pushEventInOrder(agendaItems, eventList[i], PlanningEventManager.getEventStartDate(eventList[i]));
211 210
             }
212 211
         }
213
-        if (AprilFoolsManager.getInstance().isAprilFoolsEnabled())
214
-            agendaItems["2020-04-01"].push(AprilFoolsManager.getFakeEvent());
215 212
         this.setState({agendaItems: agendaItems})
216 213
     }
217 214
 

+ 11
- 25
utils/AprilFoolsManager.js View File

@@ -24,27 +24,13 @@ export default class AprilFoolsManager {
24 24
             AprilFoolsManager.instance;
25 25
     }
26 26
 
27
-    static getFakeEvent() {
28
-        return {
29
-            category_id: 1,
30
-            club: "Coucou",
31
-            date_begin: "2020-04-01 20:30:00",
32
-            date_end: "2020-04-01 23:59:00",
33
-            description: "Trop génial",
34
-            id: "-1",
35
-            logo: null,
36
-            title: "Super event trop whoaou",
37
-            url: null
38
-        };
39
-    }
40
-
41 27
     static getFakeMenuItem(menu: Object) {
42 28
         if (menu[1]["dishes"].length >= 3) {
43
-            menu[1]["dishes"].splice(0, 0, {name: "Truc à la con"});
44
-            menu[1]["dishes"].splice(2, 0, {name: "Autre truc à la con"});
29
+            menu[1]["dishes"].splice(0, 0, {name: "Coq au vin"});
30
+            menu[1]["dishes"].splice(2, 0, {name: "Pave de loup"});
45 31
         } else {
46
-            menu[1]["dishes"].push({name: "Truc à la con"});
47
-            menu[1]["dishes"].push({name: "Autre truc à la con"});
32
+            menu[1]["dishes"].push({name: "Coq au vin"});
33
+            menu[1]["dishes"].push({name: "Pave de loup"});
48 34
         }
49 35
         return menu;
50 36
     }
@@ -54,13 +40,13 @@ export default class AprilFoolsManager {
54 40
             ...currentTheme,
55 41
             colors: {
56 42
                 ...currentTheme.colors,
57
-                primary: '#bebe03',
58
-                accent: '#bebe03',
59
-                background: '#5b3e02',
60
-                tabBackground: "#5b3e02",
61
-                card: "#5b3e02",
62
-                surface: "#5b3e02",
63
-                dividerBackground: '#362201',
43
+                primary: '#00be45',
44
+                accent: '#00be45',
45
+                background: '#50005b',
46
+                tabBackground: "#50005b",
47
+                card: "#50005b",
48
+                surface: "#50005b",
49
+                dividerBackground: '#3e0047',
64 50
                 textDisabled: '#b9b9b9',
65 51
 
66 52
                 // Calendar/Agenda

+ 1
- 1
utils/ThemeManager.js View File

@@ -120,7 +120,7 @@ export default class ThemeManager {
120 120
      */
121 121
     static getCurrentTheme(): Object {
122 122
         if (AprilFoolsManager.getInstance().isAprilFoolsEnabled())
123
-            return AprilFoolsManager.getAprilFoolsTheme(ThemeManager.getBaseTheme());
123
+            return AprilFoolsManager.getAprilFoolsTheme(ThemeManager.getDarkTheme());
124 124
          else
125 125
             return ThemeManager.getBaseTheme()
126 126
     }

Loading…
Cancel
Save