-
Notifications
You must be signed in to change notification settings - Fork 0
/
datelbot.kv
87 lines (70 loc) · 2.02 KB
/
datelbot.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
#:kivy 1.10.0
#:import WindowDragBehavior window_drag_behavior.WindowDragBehavior
#:import MaterialLabel kivymd.label.MaterialLabel
#:import MaterialFlatButton kivymd.button.MaterialFlatButton
#:import MaterialRaisedButton kivymd.button.MaterialRaisedButton
CustStackLayout:
<Dragger@WindowDragBehavior>:
<HeadLabel@WindowDragBehavior+MaterialLabel>:
<HelpPopup>:
title: 'Help'
AnchorLayout:
Dragger:
size_hint_y: None
height: 320
MaterialLabel:
text: app.help_text
color: 0, 0, 0, 1
padding_x: 8
markup: True
BoxLayout:
Widget:
MaterialFlatButton:
id: help_close_btn
text: "Close"
pos_hint: {'right': True}
on_release: app.dismiss_help()
<CustStackLayout>:
orientation: 'lr-tb'
pos_hint: {'top': True}
padding: 6
FloatLayout:
size_hint: 1, None
height: 50
HeadLabel:
id: header
pos_hint: {'top': True, 'left': True}
size_hint: 1, None
size: (0, 30)
font_size: 20
markup: True
text: 'Welcome to [color=442B69]Datelbot[/color]'
color: app.theme_cls.primary_color
valign: 'bottom'
padding_x: 10
MaterialRaisedButton:
id: close_btn
size_hint: None, None
size: 32, 32
anchor_x: 'right'
pos_hint: {'top': True, 'right': True}
text: '\u00d7'
on_release: app.stop()
InfoLabel:
id: info
size_hint: 1, None
height: 0
font_size: 12
padding_x: 8
color: 0.26, 0.16, 0.4, 1
BoxLayout:
size_hint: 1, None
height: 50
MaterialFlatButton:
text: 'Emulate'
on_release: app.run_emul()
Widget:
MaterialFlatButton:
id: help_button
text: '?'
on_release: app.help()