diff options
| author | historia <historiavg@proton.me> | 2026-08-27 18:00:58 -0400 |
|---|---|---|
| committer | historia <historiavg@proton.me> | 2026-08-27 18:00:58 -0400 |
| commit | 0047a875d0a969005f3cea3df18de909d285f910 (patch) | |
| tree | bbca338caab39538c689a2477a9c06bd49b28db8 /app/ui/hub.py | |
| parent | 2a9a78dd1caec0811ed2640b28375890ee96e4cc (diff) | |
| download | tts-audiobook-generator-0047a875d0a969005f3cea3df18de909d285f910.tar.gz | |
fix: scrolling on help screen
Diffstat (limited to 'app/ui/hub.py')
| -rw-r--r-- | app/ui/hub.py | 54 |
1 files changed, 36 insertions, 18 deletions
diff --git a/app/ui/hub.py b/app/ui/hub.py index fd2d371..25baf37 100644 --- a/app/ui/hub.py +++ b/app/ui/hub.py @@ -832,32 +832,50 @@ def _notice_lines() -> Optional[list]: def _help_lines() -> list: - """The Help screen's quick-start text (folder paths resolved live).""" + """The Help screen's quick-start text (folder paths resolved live). + + Items are text_viewer rows: "" (a blank line) or a (segments, + indent) pair — SEGMENTS are (text, kind) with KIND a theme key + (None = body). Numbered steps start at the margin; every other + line is indented two spaces so it reads as part of its step. + """ return [ - "1. Put your ebooks (epub, txt, or pdf) here:", - str(BOOKS_FOLDER), + ([("1. ", "title"), + ("Put your ebooks (epub, txt, or pdf) here:", None)], 0), + ([(str(BOOKS_FOLDER), "input")], 1), "", - "2. Put any .wavs of voices to clone here:", - str(common.VOICES_DIR), + ([("2. ", "title"), + ("Put any .wavs of voices to clone here:", None)], 0), + ([(str(common.VOICES_DIR), "input")], 1), "", - "3. If no backend is installed, go to Configure Backends > " - "Install Backend and install audio.cpp.", + ([("3. ", "title"), + ("If no backend is installed, go to ", None), + ("Configure Backends", "accent"), (" > ", None), + ("Install Backend", "accent"), + (" and install audio.cpp.", None)], 0), "", - "4. Select TTS models to install. If you're unsure, try these " - "qwen3-tts models:", + ([("4. ", "title"), + ("Select TTS models to install. If you're unsure, try " + "these qwen3-tts models:", None)], 0), "", - "Voice cloning: qwen3_tts_1_7b_base_q8_0", - "Built-in-voice: qwen3_tts_1_7b_customvoice_q8_0", + ([("Voice cloning:", None), (" ", None), + ("qwen3_tts_1_7b_base_q8_0", "ok")], 1), + ([("Built-in-voice:", None), (" ", None), + ("qwen3_tts_1_7b_customvoice_q8_0", "ok")], 1), "", - "It will take a while to build audio.cpp and download the model " - "files.", + ([("It will take a while to build audio.cpp and download " + "the model files.", None)], 1), "", - "5. Go to Generate Audiobooks. It will automatically start the " - "necessary server, generate the books, and stop it. There is no " - "need to manually start/stop servers.", + ([("5. ", "title"), ("Go to ", None), + ("Generate Audiobooks", "accent"), + (". It will automatically start the necessary server, " + "generate the books, and stop it.", None)], 0), + ([("There is no need to manually start/stop servers.", None)], 1), "", - "6. Generated audiobooks (m4b, mp3, etc.) will output here:", - str(AUDIOBOOKS_FOLDER), + ([("6. ", "title"), + ("Generated audiobooks (m4b, mp3, etc.) will output here:", + None)], 0), + ([(str(AUDIOBOOKS_FOLDER), "input")], 1), ] |
