Compare commits

..

2 Commits

Author SHA1 Message Date
c65e949731 feat: improve margin 2025-12-16 03:25:12 +01:00
ab51e5506e feat: hide useless palette 2025-12-16 03:25:02 +01:00
2 changed files with 6 additions and 4 deletions

View File

@@ -6,6 +6,7 @@ from typing import TYPE_CHECKING
from textual import work
from textual.app import App, ComposeResult
from textual.binding import Binding
from textual.events import Key
from textual.widgets import DataTable, Footer, Header, ProgressBar, Static
from textual.worker import get_current_worker
@@ -29,6 +30,7 @@ class Auditui(App):
"""Main application class for the Audible TUI app."""
theme = "textual-dark"
SHOW_PALETTE = False
BINDINGS = [
("n", "sort", "Sort by name"),
@@ -75,7 +77,7 @@ class Auditui(App):
yield table
yield Static("", id="progress_info")
yield ProgressBar(id="progress_bar", show_eta=False, show_percentage=False, total=100)
yield Footer()
yield Footer(show_command_palette=False)
def on_mount(self) -> None:
"""Initialize the table and start fetching library data."""

View File

@@ -30,10 +30,10 @@ Header {
Footer {
background: #181825;
color: #bac2de;
height: 1;
height: 2;
padding: 0 1;
scrollbar-size: 0 0;
overflow-x: hidden;
overflow-x: auto;
overflow-y: hidden;
}
@@ -49,7 +49,7 @@ FooterKey.-grouped,
Footer.-compact FooterKey {
background: #181825;
padding: 0;
margin: 0 2 0 0;
margin: 0 1 0 0;
}
FooterKey .footer-key--key {