aboutsummaryrefslogtreecommitdiff
path: root/app/ui/hub.py
diff options
context:
space:
mode:
Diffstat (limited to 'app/ui/hub.py')
-rw-r--r--app/ui/hub.py54
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),
]