1) Uses textuals CSS_PATH and an external tcss file to bundle all DEFAULT_CSS into one file

2) Added keyboard shortcut bindings for switching the language (Ctrl-T) and showing the help (Ctrl-A) The help should use a markdown viewer
3) Include a test folder containing all the tests
This commit is contained in:
2026-09-19 14:28:40 +02:00
parent 701ff3a6d3
commit fccd2def59
20 changed files with 1118 additions and 107 deletions
+2 -31
View File
@@ -24,37 +24,8 @@ class FormatSelectScreen(ModalScreen[FormatEntry | None]):
can treat that as "no valid entry selected".
"""
DEFAULT_CSS = """
FormatSelectScreen {
align: center middle;
}
FormatSelectScreen > Container {
width: 90%;
max-width: 120;
height: auto;
max-height: 80%;
border: thick $primary 80%;
background: $surface;
padding: 1 2;
}
FormatSelectScreen #dialog-title {
text-style: bold;
margin-bottom: 1;
}
FormatSelectScreen DataTable {
height: auto;
max-height: 20;
margin-bottom: 1;
}
FormatSelectScreen Horizontal {
align-horizontal: center;
height: auto;
}
"""
# Styling for this screen lives in the app's shared external stylesheet
# (app/styles.tcss), loaded via DownloadManagerApp.CSS_PATH.
BINDINGS = [("escape", "cancel", "Cancel")]