chore: rimuove emoji da codice e output terminale
Sostituisce tutti i simboli grafici con testo: - checkmark/cross -> OK / ERRORE: / AVVISO: - icone tema GUI -> testo Chiaro / Scuro Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
+7
-7
@@ -46,8 +46,8 @@ _THEMES = {
|
||||
padding:8px 12px; font-size:14px;
|
||||
}
|
||||
""",
|
||||
"theme_btn": "background:#2a2a2a; color:#ececec; border:1px solid #3a3a3a; border-radius:6px; font-size:16px; padding:4px 8px;",
|
||||
"icon": "☀️",
|
||||
"theme_btn": "background:#2a2a2a; color:#ececec; border:1px solid #3a3a3a; border-radius:6px; font-size:12px; font-weight:600; padding:4px 8px;",
|
||||
"icon": "Chiaro",
|
||||
},
|
||||
"light": {
|
||||
"topbar": "background:#f5f5f5; border-bottom:1px solid #e0e0e0;",
|
||||
@@ -72,8 +72,8 @@ _THEMES = {
|
||||
padding:8px 12px; font-size:14px;
|
||||
}
|
||||
""",
|
||||
"theme_btn": "background:#fff; color:#1a1a1a; border:1px solid #ddd; border-radius:6px; font-size:16px; padding:4px 8px;",
|
||||
"icon": "🌙",
|
||||
"theme_btn": "background:#fff; color:#1a1a1a; border:1px solid #ddd; border-radius:6px; font-size:12px; font-weight:600; padding:4px 8px;",
|
||||
"icon": "Scuro",
|
||||
},
|
||||
}
|
||||
|
||||
@@ -130,7 +130,7 @@ class ChatWindow(QMainWindow):
|
||||
tl.addStretch()
|
||||
|
||||
self._theme_btn = QPushButton()
|
||||
self._theme_btn.setFixedSize(36, 30)
|
||||
self._theme_btn.setFixedSize(60, 30)
|
||||
self._theme_btn.setToolTip("Cambia tema")
|
||||
self._theme_btn.clicked.connect(self._toggle_theme)
|
||||
tl.addWidget(self._theme_btn)
|
||||
@@ -212,7 +212,7 @@ class ChatWindow(QMainWindow):
|
||||
if not question:
|
||||
return
|
||||
if not self._collection:
|
||||
self._js("addMessage('assistant', '⚠️ Seleziona una collezione prima di inviare.', [])")
|
||||
self._js("addMessage('assistant', 'Seleziona una collezione prima di inviare.', [])")
|
||||
return
|
||||
|
||||
self._input.clear()
|
||||
@@ -236,7 +236,7 @@ class ChatWindow(QMainWindow):
|
||||
|
||||
def _on_error(self, msg: str) -> None:
|
||||
self._js("removeThinking()")
|
||||
self._js(f"addMessage('assistant', {json.dumps('❌ Errore: ' + msg)}, [])")
|
||||
self._js(f"addMessage('assistant', {json.dumps('Errore: ' + msg)}, [])")
|
||||
self._set_enabled(True)
|
||||
|
||||
# ── Helpers ───────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user