Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/ManualClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
ModuleUpdate.update()

import Utils
from kivy.metrics import dp

if __name__ == "__main__":
Utils.init_logging("ManualClient", exception_logger="Client")
Expand Down Expand Up @@ -231,12 +232,12 @@ def __init__(self, ctx):
def build(self) -> Layout:
super().build()

self.manual_game_layout = BoxLayout(orientation="horizontal", size_hint_y=None, height=30)
self.manual_game_layout = BoxLayout(orientation="horizontal", size_hint_y=None, height=dp(30))

game_bar_label = Label(text="Manual Game ID", size=(150, 30), size_hint_y=None, size_hint_x=None)
game_bar_label = Label(text="Manual Game ID", size=(dp(150), dp(30)), size_hint_y=None, size_hint_x=None)
self.manual_game_layout.add_widget(game_bar_label)
self.game_bar_text = TextInput(text=self.ctx.suggested_game,
size_hint_y=None, height=30, multiline=False, write_tab=False)
size_hint_y=None, height=dp(30), multiline=False, write_tab=False)
self.manual_game_layout.add_widget(self.game_bar_text)

self.grid.add_widget(self.manual_game_layout, 3)
Expand Down