-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDesign.kv
150 lines (122 loc) · 3.2 KB
/
Design.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
MDBottomNavigation:
panel_color : 0, 107 / 255, 153 / 255, 1
MDBottomNavigationItem:
name: "DisneyMovieList"
text: "Movies"
icon: "movie"
MDScreen:
AsyncImage:
pos_hint: {"center_x": .5, "center_y": .9}
size_hint_y: .1
source: "assets/images/Disney_Logo.png"
MDCard:
size_hint_y: .8
elevation: 7
padding: 25
spacing: 25
orientation: "vertical"
MDSwiper:
id: swiper
size_hint_y: .7
MDBottomNavigationItem:
name: "MovieInfo"
text: "Info & Trailer"
icon: "movie-filter"
MDScreen:
MDFloatLayout:
FitImage:
id: movie_image
size_hint: 1, 1
AsyncImage:
id: title_image
pos_hint: {"center_x": .2, "center_y": .6}
size_hint: .4, .2
MDCard:
size_hint: .3, .4
pos_hint: {"center_x": .2, "center_y": .25}
elevation: 7
padding: 25
spacing: 25
orientation: "vertical"
MDScrollView:
do_scroll_x: False
do_scroll_y: True
MDLabel:
id: info_box
size_hint_y: None
height: self.texture_size[1]
text_size: self.width, None
padding: 10, 10
bold: True
color: 0, .5, 1, 1
halign: "center"
MDFloatingActionButton:
id: trailer_button
icon: "movie-filter"
pos_hint: {"center_x" : .8, "center_y" : .15}
type: "large"
md_bg_color: "#f8d7e3"
theme_icon_color: "Custom"
icon_color: "#311021"
MDBottomNavigationItem:
name : "Predictor"
text : "AI"
icon : "brain"
MDScreen:
MDBoxLayout:
orientation : "vertical"
padding : 10
spacing : 10
AsyncImage:
pos_hint: {"center_x": .5, "center_y": .9}
size_hint_y: .1
source: "assets/images/Disney_Logo.png"
MDSegmentedControl:
pos_hint: {"center_x": .5}
md_bg_color: 0, 107 / 255, 153 / 255, 1
segment_color: app.theme_cls.primary_color
separator_color: "blue"
radius: (16, 16, 16, 16)
on_active: app.switch_classifier(*args)
MDSegmentedControlItem:
text: "Character"
bold: True
MDSegmentedControlItem:
text: "Movie"
bold: True
MDGridLayout:
cols: 2
Camera:
id: camera
resolution: (640,480)
size_hint: .4, .7
play: True
MDCard:
size_hint: .3, .4
elevation: 7
padding: 25
spacing: 25
orientation: "vertical"
MDScrollView:
do_scroll_x: False
do_scroll_y: True
MDLabel:
id: prediction_card
size_hint_y: None
height: self.texture_size[1]
text_size: self.width, None
padding: 10, 10
bold: True
color: 0, .5, 1, 1
halign: "center"
MDRoundFlatButton:
id: prediction_button
text: "Predict"
pos_hint: {"center_x" : 0.5}
on_release: app.capture_and_predict()
MDRectangleFlatButton:
id: prediction
text: "Prediction"
pos_hint: {'center_x':.5}
size_hint: 0.6,.15
bold: True