Impostazioni a schede; voce tolta dal pannello Customise

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
lucianoandClaude Fable 5.1 committed 2026-09-24 11:08:29 +02:00
1 parent baeab8936b
commit 64f3474d92
2 files changed
+27 -35

No files matched your search

+2 -22
View File
@@ -1645,29 +1645,9 @@ class CustomizeOverlay(QWidget):
self._user_input.setStyleSheet(_fs)
lay.addWidget(self._user_input)
# ── Assistant voice — Gemini prebuilt voices ─────────────────────────
# Names are language-neutral proper nouns, so the row reads the same in
# every locale. Selecting one and applying rebuilds the Live session.
from memory.config_manager import AVAILABLE_VOICES, DEFAULT_VOICE
lay.addSpacing(4)
lay.addWidget(_lbl("ASSISTANT VOICE", 11, color=C.TEXT_DIM,
align=Qt.AlignmentFlag.AlignLeft))
self._sel_voice = (voice or DEFAULT_VOICE)
if self._sel_voice not in AVAILABLE_VOICES:
self._sel_voice = DEFAULT_VOICE
# AvatarPy: la voce si sceglie in «Motore e Voce»; qui resta solo il valore corrente.
self._sel_voice = voice or ""
self._voice_btns: dict[str, QPushButton] = {}
voice_row = QHBoxLayout(); voice_row.setSpacing(4)
for _v in AVAILABLE_VOICES:
b = QPushButton(_v)
b.setCheckable(True)
b.setFixedHeight(28)
b.setFont(QFont("Menlo", 11, QFont.Weight.Bold))
b.setCursor(Qt.CursorShape.PointingHandCursor)
b.clicked.connect(lambda _=False, name=_v: self._on_voice_pick(name))
self._voice_btns[_v] = b
voice_row.addWidget(b)
lay.addLayout(voice_row)
self._refresh_voice_btns()
# ── UI colour — colour wheel ─────────────────────────────────────────
lay.addSpacing(4)