修复:

- 设置弹窗提示语移到按钮上方并居中显示
This commit is contained in:
RoyirinRosmontis
2026-08-23 14:01:58 +08:00
parent 701845afc2
commit e8a37edfc0
+4 -2
View File
@@ -1407,13 +1407,15 @@ class SettingsDialog(QDialog):
port_row.addWidget(self.ed_port) port_row.addWidget(self.ed_port)
layout.addLayout(port_row) layout.addLayout(port_row)
layout.addStretch()
# 提示语:按钮上方居中
self.lb_hint = QLabel("代理运行中,关闭代理后可修改" if port_locked else "保存更改后下次开启代理生效") self.lb_hint = QLabel("代理运行中,关闭代理后可修改" if port_locked else "保存更改后下次开启代理生效")
self.lb_hint.setStyleSheet(f"color: {C_SUBTEXT}; font-size: 11px;") self.lb_hint.setStyleSheet(f"color: {C_SUBTEXT}; font-size: 11px;")
self.lb_hint.setFixedHeight(14) self.lb_hint.setFixedHeight(14)
self.lb_hint.setAlignment(Qt.AlignCenter)
layout.addWidget(self.lb_hint) layout.addWidget(self.lb_hint)
layout.addStretch()
# 底部:保存更改 + 退出登录 并排 # 底部:保存更改 + 退出登录 并排
btns = QHBoxLayout() btns = QHBoxLayout()
btns.setSpacing(10) btns.setSpacing(10)