更新bug
This commit is contained in:
@@ -648,7 +648,7 @@ class AppointmentsPage(QWidget):
|
||||
root = QVBoxLayout(self)
|
||||
root.setContentsMargins(22, 7, 6, 8)
|
||||
root.setSpacing(4)
|
||||
header = PageHeader("患者列表")
|
||||
header = PageHeader("问诊列表")
|
||||
header.title_label.hide()
|
||||
header.subtitle_label.hide()
|
||||
root.addWidget(header)
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -86,7 +86,7 @@ class NavigationItem:
|
||||
NAVIGATION = (
|
||||
NavigationItem(
|
||||
"appointments",
|
||||
"接诊台",
|
||||
"问诊列表",
|
||||
"号",
|
||||
AppointmentsPage,
|
||||
("doctor.appointment/lists",),
|
||||
@@ -301,8 +301,8 @@ def _resolve_navigation(
|
||||
continue
|
||||
if not _canonical_allowed(permissions, item.permissions[0]):
|
||||
continue
|
||||
if item.key in {"appointments", "patients"}:
|
||||
# Keep the two product-facing navigation titles stable even when
|
||||
if item.key in {"appointments", "reception", "patients"}:
|
||||
# Keep the product-facing navigation titles stable even when
|
||||
# the server still carries an older menu label.
|
||||
title = item.title
|
||||
else:
|
||||
@@ -549,7 +549,7 @@ def _painted_navigation_icon(kind: str, size: int = 18) -> QIcon:
|
||||
|
||||
|
||||
class _ShellBrandMark(QWidget):
|
||||
"""Paint the supplied indigo pulse mark without a font glyph dependency."""
|
||||
"""Paint the supplied indigo M mark without a font-glyph asset."""
|
||||
|
||||
def paintEvent(self, event: Any) -> None: # noqa: N802 - Qt virtual
|
||||
del event
|
||||
@@ -562,26 +562,12 @@ class _ShellBrandMark(QWidget):
|
||||
painter.setPen(QPen(QColor(117, 130, 255, 150), 1.0))
|
||||
painter.setBrush(gradient)
|
||||
painter.drawRoundedRect(rect, 10, 10)
|
||||
|
||||
pen = QPen(QColor("#FFFFFF"), 1.8)
|
||||
pen.setCapStyle(Qt.PenCapStyle.RoundCap)
|
||||
pen.setJoinStyle(Qt.PenJoinStyle.RoundJoin)
|
||||
painter.setPen(pen)
|
||||
painter.setBrush(Qt.BrushStyle.NoBrush)
|
||||
y = self.height() / 2
|
||||
painter.drawPolyline(
|
||||
QPolygonF(
|
||||
[
|
||||
QPointF(8, y + 2),
|
||||
QPointF(11, y + 2),
|
||||
QPointF(14, y - 6),
|
||||
QPointF(18, y + 7),
|
||||
QPointF(22, y - 4),
|
||||
QPointF(25, y + 2),
|
||||
QPointF(self.width() - 8, y + 2),
|
||||
]
|
||||
)
|
||||
)
|
||||
painter.setPen(QColor("#FFFFFF"))
|
||||
font = QFont(painter.font())
|
||||
font.setPixelSize(18)
|
||||
font.setWeight(QFont.Weight.Bold)
|
||||
painter.setFont(font)
|
||||
painter.drawText(rect, Qt.AlignmentFlag.AlignCenter, "M")
|
||||
|
||||
|
||||
class _AssistantRobot(QWidget):
|
||||
@@ -837,7 +823,7 @@ class ShellWindow(QMainWindow):
|
||||
parent: QWidget | None = None,
|
||||
) -> None:
|
||||
super().__init__(parent)
|
||||
self.setWindowTitle("甄养堂 · AI 问诊助手")
|
||||
self.setWindowTitle("甄养堂 · 问诊中心")
|
||||
self.setWindowFlag(Qt.WindowType.FramelessWindowHint, True)
|
||||
self.setAttribute(Qt.WidgetAttribute.WA_DontShowOnScreen, True)
|
||||
self.repository = repository
|
||||
@@ -1032,7 +1018,7 @@ class ShellWindow(QMainWindow):
|
||||
brand_copy_layout = QVBoxLayout(self.brand_copy)
|
||||
brand_copy_layout.setContentsMargins(0, 0, 0, 0)
|
||||
brand_copy_layout.setSpacing(1)
|
||||
self.brand_name = QLabel("AI问诊助手", self.brand_copy)
|
||||
self.brand_name = QLabel("问诊中心", self.brand_copy)
|
||||
self.brand_name.setObjectName("ShellBrandName")
|
||||
brand_copy_layout.addWidget(self.brand_name)
|
||||
self.brand_subtitle = QLabel("糖尿病专科版", self.brand_copy)
|
||||
@@ -1083,7 +1069,7 @@ class ShellWindow(QMainWindow):
|
||||
outer_assistant.addWidget(self.assistant_card)
|
||||
layout.addLayout(outer_assistant)
|
||||
|
||||
self.model_label = QLabel("模型:服务端自动匹配 ›", sidebar)
|
||||
self.model_label = QLabel("模型:GPT-4o 医疗版 ›", sidebar)
|
||||
self.model_label.setObjectName("ShellModelLabel")
|
||||
self.model_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
|
||||
self.model_label.setFixedHeight(76)
|
||||
@@ -1130,11 +1116,15 @@ class ShellWindow(QMainWindow):
|
||||
font-size: 10px;
|
||||
}
|
||||
QPushButton#ShellAiEntry {
|
||||
min-height: 34px;
|
||||
padding: 0 10px;
|
||||
min-width: 38px;
|
||||
max-width: 38px;
|
||||
min-height: 38px;
|
||||
max-height: 38px;
|
||||
padding: 0;
|
||||
color: #5265F6;
|
||||
background-color: transparent;
|
||||
border: 0;
|
||||
border-radius: 9px;
|
||||
font-weight: 700;
|
||||
}
|
||||
QPushButton#ShellAiEntry:hover { background-color: #EEF1FF; }
|
||||
@@ -1220,11 +1210,13 @@ class ShellWindow(QMainWindow):
|
||||
self.context_label.hide()
|
||||
layout.addStretch(1)
|
||||
|
||||
self.ai_top_button = QPushButton("AI 助手", topbar)
|
||||
self.ai_top_button = QPushButton("", topbar)
|
||||
self.ai_top_button.setObjectName("ShellAiEntry")
|
||||
self.ai_top_button.setIcon(_painted_shell_icon("ai", 18))
|
||||
self.ai_top_button.setIconSize(QSize(18, 18))
|
||||
self.ai_top_button.setCursor(Qt.CursorShape.PointingHandCursor)
|
||||
self.ai_top_button.setToolTip("AI 助手")
|
||||
self.ai_top_button.setAccessibleName("AI 助手")
|
||||
self.ai_top_button.clicked.connect(self._open_ai_assistant)
|
||||
layout.addWidget(self.ai_top_button)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user