-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.kv
26 lines (24 loc) · 1017 Bytes
/
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
#:include firebaseloginscreen.kv
#:include welcomescreen.kv
#:import FirebaseLoginScreen firebaseloginscreen.FirebaseLoginScreen
#:import WelcomeScreen welcomescreen.WelcomeScreen
#:import utils kivy.utils
ScreenManager:
id: sm
FirebaseLoginScreen:
id: firebase_login_screen
name: "firebase_login_screen"
web_api_key: "AIzaSyBhiIklqlYrf3jzA5ROjtpzs9A9uCogN5k" # Found in Firebase -> Project Settings -> Web API Key
primary_color: utils.get_color_from_hex("#EE682A")
secondary_color: utils.get_color_from_hex("#060809")
tertiary_color: (.25, .25, .25, 1)
on_login_success:
# Defining this function lets you program what to do when the
# user has logged in (probably you'll want to change screens)!
# Get the important user info
sm.current = 'welcomescreen'
WelcomeScreen:
id: welcomescreen
name: "welcomescreen"
on_logout_success:
sm.current = 'welcomescreen'