diff --git a/tui/gniza.tcss b/tui/gniza.tcss index 0568613..de8793e 100644 --- a/tui/gniza.tcss +++ b/tui/gniza.tcss @@ -18,28 +18,19 @@ Screen { align: center middle; } -#logo-panel { +#logo { width: auto; + min-width: 40; height: auto; - padding: 1 2; - align: center middle; -} - -#menu-panel { - width: 1fr; - max-width: 40; - height: auto; - padding: 1 2; + padding: 1 3; + content-align: center middle; } #menu-list { - width: 100%; - height: auto; - max-height: 100%; -} - -#logo { + width: 1fr; + max-width: 35; height: auto; + margin: 1 2; } /* Data tables */ diff --git a/tui/screens/main_menu.py b/tui/screens/main_menu.py index d6145b0..22ac8de 100644 --- a/tui/screens/main_menu.py +++ b/tui/screens/main_menu.py @@ -5,13 +5,26 @@ from textual.widgets.option_list import Option from textual.containers import Horizontal, Vertical LOGO = """\ - [green] - \u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593 - \u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593 \u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593 - \u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593 - \u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593\u2593 - [/green] - gniza - Linux Backup Manager +[green] +▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ +▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓ +▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ +▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ + +▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ +▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓ +▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ +▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ + +▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ +▓▓▓▓▓▓▓▓▓▓▓▓ ▓▓▓▓▓▓▓▓▓▓▓ +▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ +▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓ + ▓▓▓▓▓▓▓▓▓▓ + ▓▓▓▓▓▓ + ▓▓ +[/green] +gniza - Linux Backup Manager """ MENU_ITEMS = [ @@ -36,13 +49,11 @@ class MainMenuScreen(Screen): def compose(self) -> ComposeResult: yield Header() with Horizontal(id="main-layout"): - with Vertical(id="logo-panel"): - yield Static(LOGO, id="logo", markup=True) - with Vertical(id="menu-panel"): - yield OptionList( - *[Option(label, id=mid) for mid, label in MENU_ITEMS], - id="menu-list", - ) + yield Static(LOGO, id="logo", markup=True) + yield OptionList( + *[Option(label, id=mid) for mid, label in MENU_ITEMS], + id="menu-list", + ) yield Footer() def on_mount(self) -> None: