test-kivy-app/my.kv

117 lines
2.4 KiB
Plaintext
Raw Normal View History

2024-09-15 17:57:02 +00:00
2024-09-15 21:31:05 +00:00
<ItemLabel@MDLabel>:
2024-09-15 17:57:02 +00:00
font_size: '25sp'
halign: 'left'
valign: 'middle'
text_size: self.size
<Container>:
2024-09-15 21:31:05 +00:00
2024-09-15 17:57:02 +00:00
rows:3
text_input: text_input
text_input_check: text_input_check
text_input_show: text_input_show
openwrt: openwrt
polaris: polaris
raspberry_pi: raspberry_pi
udongein_xyz: udongein_xyz
2024-09-15 21:31:05 +00:00
MDAnchorLayout:
size_hint: 1, 0.25
md_bg_color: app.theme_cls.backgroundColor
padding: [20, 0, 20, 0]
2024-09-15 17:57:02 +00:00
2024-09-15 21:31:05 +00:00
MDTextField:
mode: "filled"
2024-09-15 17:57:02 +00:00
id: text_input
2024-09-15 21:31:05 +00:00
font_size: '40sp'
2024-09-15 17:57:02 +00:00
multiline: False
2024-09-15 21:31:05 +00:00
#input_type: 'number'
MDTextFieldLeadingIcon:
icon: "web"
MDTextFieldHelperText:
text: "Enter ip or domain name"
MDGridLayout:
#adaptive_height: True
md_bg_color: app.theme_cls.backgroundColor
2024-09-15 17:57:02 +00:00
cols: 2
2024-09-15 21:31:05 +00:00
MDBoxLayout:
2024-09-15 17:57:02 +00:00
orientation: 'vertical'
padding: [30, 0, 0, 0]
ItemLabel:
text: 'Router'
ItemLabel:
text: 'Polaris'
ItemLabel:
text: 'Raspberry pi'
ItemLabel:
text: 'Udongein.xyz'
ItemLabel:
id: text_input_show
text: 'Other: '
2024-09-15 21:31:05 +00:00
MDBoxLayout:
2024-09-15 17:57:02 +00:00
orientation: 'vertical'
size_hint: 0.5, 1
ItemLabel:
id: openwrt
text: '[b]?[/b]'
markup: True
ItemLabel:
id: polaris
text: '[b]?[/b]'
markup: True
ItemLabel:
id: raspberry_pi
text: '[b]?[/b]'
markup: True
ItemLabel:
id: udongein_xyz
text: '[b]?[/b]'
markup: True
ItemLabel:
id: text_input_check
text: '[b]?[/b]'
markup: True
2024-09-15 21:31:05 +00:00
MDBoxLayout:
orientation: "horizontal"
size_hint_y: 0.20
2024-09-15 17:57:02 +00:00
padding: [30, 0, 30, 20]
2024-09-15 21:31:05 +00:00
md_bg_color: app.theme_cls.backgroundColor
MDButton:
style: "tonal"
on_press:on_press: root.checkAvailability()
pos_hint_x: 60
MDButtonIcon:
icon: "check"
MDButtonText:
text: 'Check connection'
font_size: 40
2024-09-15 17:57:02 +00:00