更新
This commit is contained in:
@@ -79,7 +79,7 @@ from ..dialogs.prescription_ai import (
|
||||
present_diagnosis_ai_assistant,
|
||||
present_diagnosis_ai_report,
|
||||
)
|
||||
from ..theme import mark_business_dialog
|
||||
from ..theme import crisp_pixmap, mark_business_dialog
|
||||
from ..widgets import (
|
||||
EmptyState,
|
||||
MessageBanner,
|
||||
@@ -1656,8 +1656,7 @@ def _bmi_status(bmi: float | None) -> tuple[str, bool] | None:
|
||||
|
||||
|
||||
def _painted_reception_tab_icon(kind: str, size: int = 16) -> QIcon:
|
||||
pixmap = QPixmap(size, size)
|
||||
pixmap.fill(Qt.GlobalColor.transparent)
|
||||
pixmap = crisp_pixmap(size)
|
||||
painter = QPainter(pixmap)
|
||||
painter.setRenderHint(QPainter.RenderHint.Antialiasing)
|
||||
pen = QPen(QColor("#7481A3"), 1.4)
|
||||
@@ -1698,8 +1697,7 @@ def _painted_reception_tab_icon(kind: str, size: int = 16) -> QIcon:
|
||||
|
||||
|
||||
def _painted_reception_action_icon(kind: str, color: str, size: int = 14) -> QIcon:
|
||||
pixmap = QPixmap(size, size)
|
||||
pixmap.fill(Qt.GlobalColor.transparent)
|
||||
pixmap = crisp_pixmap(size)
|
||||
painter = QPainter(pixmap)
|
||||
painter.setRenderHint(QPainter.RenderHint.Antialiasing)
|
||||
pen = QPen(QColor(color), 1.4)
|
||||
@@ -4978,12 +4976,9 @@ class ReceptionPage(QWidget):
|
||||
self.ai_analysis_title.setToolTip(
|
||||
f"本次分析:{model_hint}" if model_hint else "服务端 AI 智能分析"
|
||||
)
|
||||
compact_time = generated_at
|
||||
if len(generated_at) >= 16 and generated_at[4:5] in {"-", "/"}:
|
||||
compact_time = generated_at[5:16]
|
||||
meta_text = " | ".join(
|
||||
part for part in (f"第 {version} 版", compact_time) if part
|
||||
)
|
||||
# 标题行放不下“第 N 版 | 08-13 15:42”,时间会被截成“08-13 1…”。
|
||||
# 完整快照时间本来就在下一行的“快照时间:…”里,这里只留版本号。
|
||||
meta_text = f"第 {version} 版"
|
||||
self.ai_analysis_snapshot_meta.setText(meta_text)
|
||||
self.ai_analysis_snapshot_meta.setToolTip(
|
||||
" | ".join(part for part in (f"第 {version} 版", generated_at) if part)
|
||||
|
||||
Reference in New Issue
Block a user