-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathmain.kv
152 lines (128 loc) · 4.1 KB
/
main.kv
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
Screen:
id: scr
NavigationLayout:
ScreenManager:
id: screen_manager
Screen:
name: "HomeScreen"
AnchorLayout:
anchor_x: 'center'
anchor_y: 'bottom'
FitImage:
source: f"selected_wallpaper/selected_wallpaper.png"
AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'
MDToolbar:
title: "Consolidate: Mind Management"
md_bg_color: app.theme_cls.primary_dark
left_action_items: [['menu', lambda x: nav_drawer.set_state("toggle")]]
Screen:
name: "SettingsScreen"
AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'
MDToolbar:
title: "Settings"
md_bg_color: app.theme_cls.primary_dark
left_action_items: [['menu', lambda x: nav_drawer.set_state("toggle")]]
Screen:
name: "MoodScreen"
AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'
MDToolbar:
title: "Mood Tracker"
md_bg_color: app.theme_cls.primary_dark
left_action_items: [['menu', lambda x: nav_drawer.set_state("toggle")]]
Screen:
name: "SleepScreen"
AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'
MDToolbar:
title: "Sleep Tracker"
md_bg_color: app.theme_cls.primary_dark
left_action_items: [['menu', lambda x: nav_drawer.set_state("toggle")]]
Screen:
name: "JournalScreen"
AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'
MDToolbar:
title: "My Journal"
md_bg_color: app.theme_cls.primary_dark
left_action_items: [['menu', lambda x: nav_drawer.set_state("toggle")]]
Screen:
name: "PersonalityScreen"
AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'
MDToolbar:
title: "My Personality"
md_bg_color: app.theme_cls.primary_dark
left_action_items: [['menu', lambda x: nav_drawer.set_state("toggle")]]
Screen:
name: "TestsScreen"
AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'
MDToolbar:
title: "Depression & Anxiety"
md_bg_color: app.theme_cls.primary_dark
left_action_items: [['menu', lambda x: nav_drawer.set_state("toggle")]]
Screen:
name: "InfoScreen"
AnchorLayout:
anchor_x: 'center'
anchor_y: 'top'
MDToolbar:
title: "Information"
md_bg_color: app.theme_cls.primary_dark
left_action_items: [['menu', lambda x: nav_drawer.set_state("toggle")]]
AnchorLayout:
id: description_card
anchor_x: 'center'
anchor_y: 'center'
MDCard:
orientation: "vertical"
padding: "8dp"
size_hint: None, None
size: "560dp", "360dp"
pos_hint: {"center_x": .5, "center_y": .5}
MDLabel:
text: "About"
theme_text_color: "Primary"
size_hint_y: None
height: self.texture_size[1]
MDSeparator:
height: "1dp"
MDLabel:
theme_text_color: "Secondary"
text: "Created by Prithvi Ramrucha."
MDNavigationDrawer:
id: nav_drawer
ContentNavigationDrawer:
id: content_drawer
<ItemDrawer>:
theme_text_color: "Custom"
on_release:
self.parent.set_color_item(self)
IconLeftWidget:
id: icon
icon: root.icon
theme_text_color: "Custom"
text_color: root.text_color
<ContentNavigationDrawer>:
orientation: "vertical"
padding: "0dp"
spacing: "0dp"
BoxLayout:
id: top_box
size_hint_y: None
height: "250dp"
FitImage:
source: f"assets/Wallpaper.png"
ScrollView:
DrawerList:
id: md_list