generated from nj-ramadhan/arkana-mbd-pykivy-water-dispenser-machine-app
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathscreen_rotation_alarm.kv
158 lines (134 loc) · 4.49 KB
/
screen_rotation_alarm.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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
#:kivy 2.1.0
<MCQCheckBox@CheckBox>:
color: 0, 0, 0, 1
size_hint: 0.15, 1
<MCQLabel@ButtonBehavior+Label>:
text_size: self.size
valign: 'middle'
font_size: '12sp'
color: 0, 0, 0, 1
<MCQLabelCheckBox@BoxLayout>:
text: ''
group: ''
spacing:5
MCQCheckBox:
id: cb
group: root.group
MCQLabel:
on_press: cb._do_press()
text: root.text
spacing_x:
<ScreenRotationAlarm>:
MDBoxLayout:
orientation: "vertical"
# header layout
MDBoxLayout:
id: layout_header
orientation: "horizontal"
padding: 15
spacing: 15
size_hint: 1, 0.08
MDIconButton:
id: bt_menu
icon: "menu"
icon_size: "25sp"
size_hint_x: 0.1
on_press: root.nav_main_menu()
MDLabel:
id: subtitle
text: "UNO MOTOR CONTROLLER"
halign: 'center'
valign: 'middle'
bold: True
font_size: 30
color: 0, 0, 0
Image:
id: logo
source:'asset/Main_Logo.png'
size_hint_x: 0.25
allow_stretch: True
# choose product layout
MDBoxLayout:
id: layout_title
orientation: "vertical"
md_bg_color: app.theme_cls.primary_color
size_hint: 1, 0.07
padding:10
spacing:10
MDLabel:
text: "ROTATION ALARM SETUP"
halign: 'center'
valign: 'middle'
bold: True
font_size: 20
color: 1, 1, 1
size_hint_y: 0.1
ScrollView:
do_scroll_y: False
do_scroll_x: True
MDBoxLayout:
orientation: "horizontal"
padding:10
spacing:10
size_hint_x: None
md_bg_color: app.theme_cls.accent_color
width: self.minimum_width
MDCard:
padding : 4
line_color: 0.2, 0.2, 0.2, 0.8
md_bg_color: "#EEEEEE"
shadow_softness:2
shadow_offset:0, 1
size_hint : None, 1
width: "400dp"
MDBoxLayout:
orientation: "vertical"
padding_vertical: 5
spacing: 5
MDBoxLayout:
orientation: "vertical"
size_hint: 1, 0.07
padding:10
spacing:10
MDLabel:
size_hint_y: .2
text : "ROTATION"
font_size: 24
halign: 'center'
valign: 'middle'
bold: True
padding: 10
MDGridLayout:
cols:1
rows:6
# row_force_default: True
# row_default_height: 30
padding: 20,5
MDTextField:
text: "ABC"
hint_text: "Setpoint"
# max_height: "10dp"
hint_text_color_normal: "#A9A9A9"
hint_text_color_focus: "#A9A9A9"
text_color_normal: "#093824"
text_color_focus: "#093824"
# mode: "rectangle"
MDTextField:
text: "ALARM"
hint_text: "Action"
# max_height: "10dp"
hint_text_color_normal: "#A9A9A9"
hint_text_color_focus: "#A9A9A9"
text_color_normal: "#093824"
text_color_focus: "#093824"
# mode: "rectangle"
MDTextField:
text: "ABC"
hint_text: "Detection"
# max_height: "10dp"
hint_text_color_normal: "#A9A9A9"
hint_text_color_focus: "#A9A9A9"
text_color_normal: "#093824"
text_color_focus: "#093824"
# mode: "rectangle"
MDLabel: