forked from vijinho/kivy-skeleton
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.kv
46 lines (42 loc) · 1.31 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
#:kivy 1.8.0
#:import main main
#:import get_random_color kivy.utils.get_random_color
#:import ListItemButton kivy.uix.listview.ListItemButton
#:import ListAdapter kivy.adapters.listadapter.ListAdapter
#:import SimpleListAdapter kivy.adapters.simplelistadapter.SimpleListAdapter
# DEBUG ALL WIDGETS
<Widget>:
canvas.after:
Line:
rectangle: self.x+1, self.y+1, self.width-1, self.height-1
dash_offset: 5
dash_length: 3
<Label>:
font_name: 'Ubuntu'
<Button>:
font_name: 'Ubuntu'
markup: True
<Main@MyScreenManager>:
size_hint: 1, 1
Screen:
name: 'Main'
id: MainScreen
MyBoxLayout:
ActionBarMain:
Button:
text: 'Skeleton Home Screen'
on_press: app.notify('success', 'Success!')
# DEBUG A SINGLE WIDGET
canvas.after:
Color:
rgba: 1, 0, 0, 0.5
Line:
rectangle: self.x+1, self.y+1, self.width-1, self.height-1
Color:
rgba: 0, 0, 1, 0.3
Rectangle:
pos: self.pos
size: self.size
FloatLayout:
MyStackLayout:
id: notifications_Main