This repository has been archived by the owner on May 25, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
elpcd.kv
60 lines (58 loc) · 2.1 KB
/
elpcd.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
#:kivy 1.11.1
#:import toast kivymd.toast.toast
#:import view_ttd lib.py.view_ttd.view_ttd
#:import open_social_media lib.utils.open_social_media
#:import delete_dialog lib.dialogs.delete_dialog
<Logo@ButtonBehavior+Image+Widget>:
source: app.LOGO
pos_hint: {'center_x': .5, 'center_y': .5}
<MainFrame>:
orientation: 'vertical'
Manager:
id: screen_manager
MDScreen:
name: "welcome"
md_bg_color: app.theme_cls.primary_color
MDBoxLayout:
size_hint: (.6, .8)
orientation: 'vertical'
pos_hint: {'center_x': .5, 'center_y': .5}
canvas:
Color:
rgba: (1, 1, 1, 1)
RoundedRectangle:
size: self.size
pos: self.pos
radius: [40,]
Logo:
on_press:
root.switch_to_screen('pcd', duration = .5)
app.welcome_event.cancel()
MDScreen:
name: "pcd"
MDBoxLayout:
orientation: 'vertical'
md_bg_color: app.theme_cls.bg_light
CustomToolbar:
id: custom_toolbar
MDBoxLayout:
orientation: 'horizontal'
MDBoxLayout:
id: tree_frame
orientation: 'vertical'
size_hint_x: .3
padding: [dp(10),dp(10),dp(5),dp(10)]
spacing: dp(10)
MDBoxLayout:
orientation: 'vertical'
padding: [dp(5),dp(10),dp(10),dp(10)]
size_hint_x: .7
spacing: dp(10)
MDBoxLayout:
id: data_frame
orientation: 'vertical'
Logo:
MDScreen:
name: "viewttd"
on_pre_enter: view_ttd()
md_bg_color: app.theme_cls.primary_color