style: spaces to tabs

This commit is contained in:
AGawde05 2020-11-02 17:14:26 -06:00
parent e8e220f1bd
commit b214e2f797
2 changed files with 139 additions and 139 deletions

264
design.kv
View File

@ -1,135 +1,135 @@
BoxLayout: BoxLayout:
orientation: "vertical" orientation: "vertical"
NavigationLayout: NavigationLayout:
ScreenManager: ScreenManager:
id: screen_manager id: screen_manager
HomeScreen: HomeScreen:
name: "Home" name: "Home"
BoxLayout: BoxLayout:
orientation: "vertical" orientation: "vertical"
MDToolbar: MDToolbar:
title: screen_manager.current title: screen_manager.current
elevation: 10 elevation: 10
left_action_items: [['menu', lambda x: nav_drawer.toggle_nav_drawer()]] left_action_items: [['menu', lambda x: nav_drawer.toggle_nav_drawer()]]
GridLayout: GridLayout:
cols: 1 cols: 1
padding: 15, 15 padding: 15, 15
spacing: 20, 20 spacing: 20, 20
MDTextFieldRect: MDTextFieldRect:
hint_text: "Console Log" hint_text: "Console Log"
# size_hint: .8, None # size_hint: .8, None
# align: 'center' # align: 'center'
# Widget: # Widget:
SettingsScreen: SettingsScreen:
name: "Settings" name: "Settings"
BoxLayout: BoxLayout:
orientation: 'vertical' orientation: 'vertical'
MDToolbar: MDToolbar:
title: screen_manager.current title: screen_manager.current
elevation: 10 elevation: 10
left_action_items: [['menu', lambda x: nav_drawer.toggle_nav_drawer()]] left_action_items: [['menu', lambda x: nav_drawer.toggle_nav_drawer()]]
Widget: Widget:
InfoScreen: InfoScreen:
name: "Info" name: "Info"
BoxLayout: BoxLayout:
orientation: 'vertical' orientation: 'vertical'
MDToolbar: MDToolbar:
title: screen_manager.current title: screen_manager.current
elevation: 10 elevation: 10
left_action_items: [['menu', lambda x: nav_drawer.toggle_nav_drawer()]] left_action_items: [['menu', lambda x: nav_drawer.toggle_nav_drawer()]]
# GridLayout: # GridLayout:
# cols: 2 # cols: 2
# padding: 15, 15 # padding: 15, 15
# spacing: 20, 20 # spacing: 20, 20
BoxLayout: BoxLayout:
orientation: "horizontal" orientation: "horizontal"
MDLabel: MDLabel:
text: "DB Key:" text: "DB Key:"
halign: 'center' halign: 'center'
MDTextField: MDTextField:
hint_text: "placeholder" hint_text: "placeholder"
pos_hint: {"center_y": .5} pos_hint: {"center_y": .5}
BoxLayout: BoxLayout:
orientation: "horizontal" orientation: "horizontal"
MDLabel: MDLabel:
text: "TBA Key:" text: "TBA Key:"
halign: 'center' halign: 'center'
MDTextField: MDTextField:
hint_text: "placeholder" hint_text: "placeholder"
pos_hint: {"center_y": .5} pos_hint: {"center_y": .5}
BoxLayout: BoxLayout:
orientation: "horizontal" orientation: "horizontal"
MDLabel: MDLabel:
text: "CPU Use:" text: "CPU Use:"
halign: 'center' halign: 'center'
MDLabel: MDLabel:
text: "placeholder" text: "placeholder"
halign: 'center' halign: 'center'
BoxLayout: BoxLayout:
orientation: "horizontal" orientation: "horizontal"
MDLabel: MDLabel:
text: "Network:" text: "Network:"
halign: 'center' halign: 'center'
MDLabel: MDLabel:
text: "placeholder" text: "placeholder"
halign: 'center' halign: 'center'
Widget: Widget:
BoxLayout: BoxLayout:
orientation: "horizontal" orientation: "horizontal"
MDLabel: MDLabel:
text: "Progress" text: "Progress"
halign: 'center' halign: 'center'
MDProgressBar: MDProgressBar:
id: progress id: progress
value: 50 value: 50
MDNavigationDrawer: MDNavigationDrawer:
id: nav_drawer id: nav_drawer
BoxLayout: BoxLayout:
orientation: "vertical" orientation: "vertical"
padding: "8dp" padding: "8dp"
spacing: "8dp" spacing: "8dp"
MDLabel: MDLabel:
text: "Titan Scouting" text: "Titan Scouting"
font_style: "Button" font_style: "Button"
size_hint_y: None size_hint_y: None
height: self.texture_size[1] height: self.texture_size[1]
MDLabel: MDLabel:
text: "Data Analysis" text: "Data Analysis"
font_style: "Caption" font_style: "Caption"
size_hint_y: None size_hint_y: None
height: self.texture_size[1] height: self.texture_size[1]
ScrollView: ScrollView:
MDList: MDList:
OneLineAvatarListItem: OneLineAvatarListItem:
text: "Home" text: "Home"
on_press: on_press:
# nav_drawer.set_state("close") # nav_drawer.set_state("close")
# screen_manager.transition.direction = "left" # screen_manager.transition.direction = "left"
screen_manager.current = "Home" screen_manager.current = "Home"
IconLeftWidget: IconLeftWidget:
icon: "home" icon: "home"
OneLineAvatarListItem: OneLineAvatarListItem:
text: "Settings" text: "Settings"
on_press: on_press:
# nav_drawer.set_state("close") # nav_drawer.set_state("close")
# screen_manager.transition.direction = "right" # screen_manager.transition.direction = "right"
# screen_manager.fade # screen_manager.fade
screen_manager.current = "Settings" screen_manager.current = "Settings"
IconLeftWidget: IconLeftWidget:
icon: "cog" icon: "cog"
OneLineAvatarListItem: OneLineAvatarListItem:
text: "Info" text: "Info"
on_press: on_press:
# nav_drawer.set_state("close") # nav_drawer.set_state("close")
# screen_manager.transition.direction = "right" # screen_manager.transition.direction = "right"
# screen_manager.fade # screen_manager.fade
screen_manager.current = "Info" screen_manager.current = "Info"
IconLeftWidget: IconLeftWidget:
icon: "cog" icon: "cog"

14
main.py
View File

@ -5,18 +5,18 @@ from kivymd.app import MDApp
# import superscript as ss # import superscript as ss
class HomeScreen(Screen): class HomeScreen(Screen):
pass pass
class SettingsScreen(Screen): class SettingsScreen(Screen):
pass pass
class InfoScreen(Screen): class InfoScreen(Screen):
pass pass
class MyApp(MDApp): class MyApp(MDApp):
def build(self): def build(self):
self.theme_cls.primary_palette = "Red" self.theme_cls.primary_palette = "Red"
return Builder.load_file("design.kv") return Builder.load_file("design.kv")
if __name__ == "__main__": if __name__ == "__main__":
MyApp().run() MyApp().run()