This commit is contained in:
Mark Qvist 2023-10-31 17:46:57 +01:00
parent 271b8783af
commit dec98f26f8
1 changed files with 12 additions and 11 deletions

View File

@ -976,6 +976,7 @@ MDScreen:
orientation: "vertical" orientation: "vertical"
MDTopAppBar: MDTopAppBar:
id: top_bar
title: "Sensors" title: "Sensors"
anchor_title: "left" anchor_title: "left"
elevation: 0 elevation: 0
@ -986,25 +987,31 @@ MDScreen:
['close', lambda x: root.app.close_sub_telemetry_action(self)], ['close', lambda x: root.app.close_sub_telemetry_action(self)],
] ]
ScrollView: MDScrollView:
id: sensors_scrollview id: sensors_scrollview
size_hint_x: 1
size_hint_y: None
size: [root.width, root.height-root.ids.top_bar.height]
do_scroll_x: False
do_scroll_y: True
MDBoxLayout: MDGridLayout:
orientation: "vertical" cols: 1
padding: [dp(28), dp(28), dp(28), dp(28)]
size_hint_y: None size_hint_y: None
height: self.minimum_height height: self.minimum_height
padding: [dp(28), dp(48), dp(28), dp(16)]
MDLabel: MDLabel:
text: "Sensor Types" text: "Sensor Types"
font_style: "H6" font_style: "H6"
size_hint_y: None
height: self.texture_size[1]
MDLabel: MDLabel:
id: telemetry_info3 id: telemetry_info3
markup: True markup: True
text: "" text: ""
size_hint_y: None size_hint_y: None
text_size: self.width, None
height: self.texture_size[1] height: self.texture_size[1]
MDBoxLayout: MDBoxLayout:
@ -1241,12 +1248,6 @@ MDScreen:
text: "" text: ""
font_size: dp(24) font_size: dp(24)
MDLabel:
markup: True
text: "\\n"
size_hint_y: None
text_size: self.width, None
height: self.texture_size[1]
""" """
layout_icons_screen = """ layout_icons_screen = """