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:
@@ -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")]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user