-
Notifications
You must be signed in to change notification settings - Fork 0
/
mar.kv
143 lines (122 loc) · 2.72 KB
/
mar.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
<RecommendationsPage>:
name: q_name
category: q_category
results_list: results
results_count: r_count_slider
results_min_score: r_min_score_slider
q_category: q_category.__self__
rows: 4
canvas.before:
Rectangle:
pos: (-900,-100)
size: (1920,1080)
source: "./assets/crystal_bg.jpg"
BoxLayout:
size_hint_y: None
height: "40dp"
orientation: "vertical"
Label:
text: "Many Anime Recommendations"
font_size: "18sp"
color: [0,0,0,1]
GridLayout:
cols: 3
rows: 2
spacing: 5
color: [200,1,2,0.5]
padding: [10,0,10,10]
BoxLayout:
orientation: "vertical"
size_hint_y: None
height: "40dp"
Label:
text: "Recommend [color=ff0099]"+str(int(r_count_slider.value))+"[/color] stories"
font_size: "12sp"
color: [0,0,0,1]
markup: True
Slider:
id: r_count_slider
min: 1
max: 12
step: 1
cursor_size: ("16sp","16sp")
value: 5
BoxLayout:
orientation: "vertical"
size_hint_y: None
height: "40dp"
Label:
text: "with my scores at least [color=ff0099]"+str(int(r_min_score_slider.value))+"[/color]"
font_size: "12sp"
color: [0,0,0,1]
markup: True
Slider:
id: r_min_score_slider
min: 1
max: 10
step: 1
cursor_size: ("16sp","16sp")
value_track_color: [200,1,2,1]
value: 5
Button:
id: user_generate_btn
text: "Generate"
on_press: root.make_recommendations()
size_hint_y: None
height: "40dp"
background_color: [200,1,2,1]
TextInput:
hint_text: "type here"
on_parent: dropdown.dismiss()
id: q_name
multiline: False
size_hint_y: None
height: "40dp"
background_color: [1,2,100,1]
opacity: 0.7
Button:
id: q_category
text: "anime"
on_release: dropdown.open(self)
size_hint_y: None
height: "40dp"
background_color: [1,2,100,0.7]
DropDown:
id: dropdown
on_select: q_category.text = "{}".format(args[1])
Button:
text: "anime"
size_hint_y: None
height: "40dp"
background_color: [1,2,100,0.7]
on_release: dropdown.select("anime")
Button:
text: "manga"
size_hint_y: None
height: "40dp"
background_color: [1,2,100,0.7]
on_release: dropdown.select("manga")
Button:
id: user_search_btn
text: "Search"
on_press: root.search_for_user()
size_hint_y: None
height: "40dp"
background_color: [1,2,100,1]
BoxLayout:
id: results
orientation: "vertical"
BoxLayout:
orientation: "horizontal"
size_hint_y: None
spacing: 10
padding: [10,0,10,10]
Button:
id: app_exit_btn
text: "Exit"
size_hint: (None, None)
size: ("80dp", "80dp")
background_color: [200,2,2,0.5]
color: [0,0,0,1]
on_press: root.exit_app(1)
background_normal: "./assets/marapp_icon.png"