-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.kv
87 lines (67 loc) · 2.09 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
# KV file for app
# MainMenu Screen
<MainMenuScreen>
# Background
canvas.before:
Rectangle:
pos: self.pos
size: self.size
source: 'background.png'
# Float layout
FloatLayout:
# Action bar
ActionBar:
pos_hint: {'top':1}
height: 50
background_color: '#00000044'
# Action View
ActionView:
use_separator: True
# Action Previous
ActionPrevious:
halign: 'center'
title: '[b][font=Love][color=#faaaad]I Love You[/font][/color][/b]'
with_previous: False
markup: True
app_icon: "no_picture.png"
# ScrollView
ScrollView:
# Scroll options
do_scroll_x: False
do_scroll_y: True
always_overscroll: True
# Size and position
size_hint: (0.8, 0.80)
pos_hint: {"center_y":0.5, "center_x":0.5}
# Bar color
bar_color: '#faaaad'
# Text
Label:
# ID
id: result
# Size and position
size_hint_y: None
height: self.texture_size[1]
text_size: self.width, None
pos_hint: {'center_y': 0.5}
# Style
font_name: "RobotoMono-Regular"
markup: True
halign: "left"
color: "#faaaad"
text: ":))))\n\n"
# Button
Button:
# ID
id: start
# Size and position
size_hint: (1, None)
pos_hint: {"center_x":0.5, "center_y": 0.04}
height: "30dp"
# Style
markup: True
text: "[b][font=Love][color=#faaaad]Get Love[/font][/color][/b]"
background_color: "#00000000"
# Press Functionality
on_press:
root.say_love(result)