-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfoscreensaver.kv
110 lines (101 loc) · 2.1 KB
/
infoscreensaver.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
<InfoScreenLayout@BoxLayout>:
id: info_screen
orientation: 'vertical'
canvas.before:
Rectangle:
pos: self.pos
size: self.size
source: 'wallpapers/munich.jpg'
BoxLayout:
size_hint: (1, .15)
id: 'top_bar'
Label:
size_hint: (.6, 1)
id: here
text: 'Home'
font_size: '30sp'
bold: True
Label:
id: clock
size_hint: (.3, 1)
text: '14:32'
font_size: '52sp'
bold: True
Button:
id: termination_button
size_hint: (.1, 1)
background_color: 0, 0, 0, 0
text: 'x'
font_size: '70sp'
bold: True
on_press: app.terminate()
ScrollView:
id: scroll
size_hint: (1, .85)
BoxLayout:
id: travel_info
spacing: 10
padding: 10
orientation: 'vertical'
<Separator@Label>
size_hint: (.001, 1)
canvas:
Color:
rgba: 1, 0, 0, .25
Rectangle:
pos: self.pos
size: self.size
<LineLabel@Label>:
bold: True
font_size: '25sp'
id: transport_line
canvas.before:
Color:
rgba: app.get_label_color(self)
Rectangle:
pos: self.pos
size: self.size
<TransportMean@BoxLayout>:
<TransImage@Image>:
<TravelWidget@BoxLayout>:
id: travel_item
valign: 'middle'
canvas:
Color:
rgba: 0, 0, 0, .75
Rectangle:
pos: self.pos
size: self.size
Label:
bold: True
id: in_time
size_hint: (.1, 1)
font_size: '20sp'
text: '2 Min'
Label:
id: destination
size_hint: (.2, 1)
font_size: '20sp'
bold: True
align: 'center'
text: 'Garching_Forschungszentrum'
BoxLayout:
size_hint: (.5, 1)
id: travel_images
padding: 0, 5
spacing: 8
Label:
id: duration
size_hint: (.1, 1)
text: '00:43'
BoxLayout:
size_hint: (.1, 1)
orientation: 'vertical'
Label:
id: departure
size_hint: (1, .4)
text: 'Abfahrt'
Label:
id: arrival
size_hint: (1, .6)
text: 'Ankunft'