2021-04-01 07:21:01 +00:00
|
|
|
<Launch>:
|
2020-11-02 23:14:26 +00:00
|
|
|
orientation: "vertical"
|
|
|
|
|
|
|
|
NavigationLayout:
|
|
|
|
ScreenManager:
|
|
|
|
id: screen_manager
|
|
|
|
HomeScreen:
|
|
|
|
name: "Home"
|
|
|
|
BoxLayout:
|
|
|
|
orientation: "vertical"
|
|
|
|
MDToolbar:
|
|
|
|
title: screen_manager.current
|
|
|
|
elevation: 10
|
|
|
|
left_action_items: [['menu', lambda x: nav_drawer.toggle_nav_drawer()]]
|
2020-10-15 22:09:33 +00:00
|
|
|
|
2020-11-02 23:14:26 +00:00
|
|
|
GridLayout:
|
|
|
|
cols: 1
|
|
|
|
padding: 15, 15
|
|
|
|
spacing: 20, 20
|
|
|
|
MDTextFieldRect:
|
|
|
|
hint_text: "Console Log"
|
|
|
|
# size_hint: .8, None
|
|
|
|
# align: 'center'
|
|
|
|
# Widget:
|
|
|
|
SettingsScreen:
|
|
|
|
name: "Settings"
|
|
|
|
BoxLayout:
|
|
|
|
orientation: 'vertical'
|
|
|
|
MDToolbar:
|
|
|
|
title: screen_manager.current
|
|
|
|
elevation: 10
|
|
|
|
left_action_items: [['menu', lambda x: nav_drawer.toggle_nav_drawer()]]
|
|
|
|
Widget:
|
|
|
|
InfoScreen:
|
|
|
|
name: "Info"
|
|
|
|
BoxLayout:
|
|
|
|
orientation: 'vertical'
|
|
|
|
MDToolbar:
|
|
|
|
title: screen_manager.current
|
|
|
|
elevation: 10
|
|
|
|
left_action_items: [['menu', lambda x: nav_drawer.toggle_nav_drawer()]]
|
|
|
|
# GridLayout:
|
|
|
|
# cols: 2
|
|
|
|
# padding: 15, 15
|
|
|
|
# spacing: 20, 20
|
|
|
|
BoxLayout:
|
|
|
|
orientation: "horizontal"
|
|
|
|
MDLabel:
|
|
|
|
text: "DB Key:"
|
|
|
|
halign: 'center'
|
|
|
|
MDTextField:
|
|
|
|
hint_text: "placeholder"
|
|
|
|
pos_hint: {"center_y": .5}
|
2021-04-01 07:21:01 +00:00
|
|
|
|
2020-11-02 23:14:26 +00:00
|
|
|
BoxLayout:
|
|
|
|
orientation: "horizontal"
|
|
|
|
MDLabel:
|
|
|
|
text: "TBA Key:"
|
|
|
|
halign: 'center'
|
|
|
|
MDTextField:
|
|
|
|
hint_text: "placeholder"
|
|
|
|
pos_hint: {"center_y": .5}
|
|
|
|
BoxLayout:
|
|
|
|
orientation: "horizontal"
|
|
|
|
MDLabel:
|
|
|
|
text: "CPU Use:"
|
|
|
|
halign: 'center'
|
|
|
|
MDLabel:
|
|
|
|
text: "placeholder"
|
|
|
|
halign: 'center'
|
|
|
|
BoxLayout:
|
|
|
|
orientation: "horizontal"
|
|
|
|
MDLabel:
|
|
|
|
text: "Network:"
|
|
|
|
halign: 'center'
|
|
|
|
MDLabel:
|
|
|
|
text: "placeholder"
|
|
|
|
halign: 'center'
|
|
|
|
Widget:
|
|
|
|
BoxLayout:
|
|
|
|
orientation: "horizontal"
|
|
|
|
MDLabel:
|
|
|
|
text: "Progress"
|
|
|
|
halign: 'center'
|
|
|
|
MDProgressBar:
|
|
|
|
id: progress
|
|
|
|
value: 50
|
2021-04-01 07:21:01 +00:00
|
|
|
StatsScreen:
|
|
|
|
name: "Stats"
|
|
|
|
MDCheckbox:
|
|
|
|
size_hint: None, None
|
|
|
|
size: "48dp", "48dp"
|
|
|
|
pos_hint: {'center_x': .5, 'center_y': .5}
|
|
|
|
on_active: Screen.test()
|
2020-11-02 23:14:26 +00:00
|
|
|
|
2021-04-01 07:21:01 +00:00
|
|
|
#Navigation Drawer -------------------------
|
2020-11-02 23:14:26 +00:00
|
|
|
MDNavigationDrawer:
|
|
|
|
id: nav_drawer
|
|
|
|
BoxLayout:
|
|
|
|
orientation: "vertical"
|
|
|
|
padding: "8dp"
|
|
|
|
spacing: "8dp"
|
|
|
|
MDLabel:
|
|
|
|
text: "Titan Scouting"
|
|
|
|
font_style: "Button"
|
|
|
|
size_hint_y: None
|
|
|
|
height: self.texture_size[1]
|
2020-11-02 22:49:12 +00:00
|
|
|
|
2020-11-02 23:14:26 +00:00
|
|
|
MDLabel:
|
|
|
|
text: "Data Analysis"
|
|
|
|
font_style: "Caption"
|
|
|
|
size_hint_y: None
|
|
|
|
height: self.texture_size[1]
|
|
|
|
ScrollView:
|
|
|
|
MDList:
|
|
|
|
OneLineAvatarListItem:
|
|
|
|
text: "Home"
|
|
|
|
on_press:
|
|
|
|
# nav_drawer.set_state("close")
|
|
|
|
# screen_manager.transition.direction = "left"
|
|
|
|
screen_manager.current = "Home"
|
|
|
|
IconLeftWidget:
|
|
|
|
icon: "home"
|
|
|
|
|
|
|
|
OneLineAvatarListItem:
|
|
|
|
text: "Settings"
|
|
|
|
on_press:
|
|
|
|
# nav_drawer.set_state("close")
|
|
|
|
# screen_manager.transition.direction = "right"
|
|
|
|
# screen_manager.fade
|
|
|
|
screen_manager.current = "Settings"
|
|
|
|
IconLeftWidget:
|
|
|
|
icon: "cog"
|
|
|
|
OneLineAvatarListItem:
|
|
|
|
text: "Info"
|
|
|
|
on_press:
|
|
|
|
# nav_drawer.set_state("close")
|
|
|
|
# screen_manager.transition.direction = "right"
|
|
|
|
# screen_manager.fade
|
|
|
|
screen_manager.current = "Info"
|
2021-04-01 07:21:01 +00:00
|
|
|
IconLeftWidget:
|
|
|
|
icon: "cog"
|
|
|
|
OneLineAvatarListItem:
|
|
|
|
text: "Stats"
|
|
|
|
on_press:
|
|
|
|
# nav_drawer.set_state("close")
|
|
|
|
# screen_manager.transition.direction = "right"
|
|
|
|
# screen_manager.fade
|
|
|
|
screen_manager.current = "Stats"
|
2020-11-02 23:14:26 +00:00
|
|
|
IconLeftWidget:
|
|
|
|
icon: "cog"
|