Skip to content

Commit

Permalink
unused bits, align EL
Browse files Browse the repository at this point in the history
  • Loading branch information
Silvris committed Sep 13, 2024
1 parent 238be83 commit fd022fb
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions kvui.py
Original file line number Diff line number Diff line change
Expand Up @@ -571,8 +571,6 @@ def on_start(*args):
self.root.md_bg_color = self.theme_cls.backgroundColor
super().on_start()
Clock.schedule_once(on_start)
#self.tabs.add_widget(MDTabsItem(MDTabsItemText("TestTab")))
#self.tabs.carousel.add_widget(MDLabel(text="Label 1"))

def build(self) -> Layout:
self.theme_cls.theme_style = self.json_to_kivy_parser.theme_style
Expand Down Expand Up @@ -626,7 +624,6 @@ def connect_bar_validate(sender):
hint_panel = MDTabsItem(MDTabsItemText(text="Hints"))
self.log_panels["Hints"] = hint_panel.content = HintLog(self.json_to_kivy_parser)
self.tabs.carousel.add_widget(hint_panel.content)
#self.tabs.carousel.add_widget(MDLabel(text="TEST", halign="center"))
self.tabs.add_widget(hint_panel)

self.main_area_container = MDGridLayout(size_hint_y=1, rows=1)
Expand Down Expand Up @@ -737,7 +734,7 @@ def update_address_bar(self, text: str):
def enable_energy_link(self):
if not hasattr(self, "energy_link_label"):
self.energy_link_label = MDLabel(text="Energy Link: Standby",
size_hint_x=None, width=150)
size_hint_x=None, width=150, halign="center")
self.connect_layout.add_widget(self.energy_link_label)

def set_new_energy_link_value(self):
Expand Down Expand Up @@ -777,7 +774,6 @@ class UILog(MDRecycleView):
messages: typing.ClassVar[int] # comes from kv file
adaptive_height = True


def __init__(self, *loggers_to_handle, **kwargs):
super(UILog, self).__init__(**kwargs)
self.data = []
Expand Down

0 comments on commit fd022fb

Please sign in to comment.