-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpatternstack.kv
More file actions
54 lines (40 loc) · 986 Bytes
/
patternstack.kv
File metadata and controls
54 lines (40 loc) · 986 Bytes
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
#:kivy 1.0.9
#:import hex kivy.utils.get_color_from_hex
#:import Window kivy.core.window.Window
<Shape>:
size: 50, 50
gettext: self.get_text(1)
setcolor: (0, 0, 0, 1)
sprite: sprite
setsource: ""
sprite_label: sprite_label
size_hint: None, None
AsyncImage:
id: sprite
anim_delay: 1/30
size_hint: None, None
pos: root.x - 43, root.y - 40
size: root.size
opacity: 0
allow_stretch: True
keep_ratio: False
Label:
id: sprite_label
pos: root.x, root.y
font_size: 40
size: root.size
color: 1, 1, 1, 1
bold: True
opacity: 1
size_hint: None, None
text_size: self.size
halign: 'center'
valign: 'middle'
allow_strech: True
keep_ratio: False
<PatternStack>:
canvas:
Color:
rgba: hex('#0a1590')
Rectangle:
size: self.width, self.height