修正 Studio 力曲线原点、运行不可用提示与禁用按钮样式

FN 轴视图留 8% 余量使 0 刻度与静止曲线离开边框;实时视图在轨道上直接写出运行不可用的原因;禁用按钮改为虚线无填充,复选框加勾,单选框选中不再变方,并放大勾选框、微调框箭头、滚动条与菜单行以便触屏操作。另修 ui_check 桩 worker 签名与英文回放提示。在 Linux 离屏环境对比未改动的 HEAD 验证:studio 失败集合为 HEAD 的子集,ui_check 结果一致。
This commit is contained in:
ykcheungab
2026-10-18 14:39:13 +08:00
parent 7b5ffa74f6
commit 85d0b396e3
9 changed files with 226 additions and 49 deletions
+17 -2
View File
@@ -1576,6 +1576,8 @@ def test_live_run_refuses_a_video_source(make_window, monkeypatch):
window._set_source_mode("video")
QApplication.processEvents()
assert not window.toolbar.btn_run.isEnabled(), "Run is offered for a video file in live"
# The reason is on the rail as text, not only in a tooltip (no hover on touch).
assert window.toolbar.run_hint.text() == t("toolbar.run_video_in_replay")
called: list[str] = []
monkeypatch.setattr(
"orisys_app_shared.acquisition.sdk_worker.orisys_importable",
@@ -3138,6 +3140,19 @@ def test_force_threshold_is_on_for_every_sensor_by_default(make_window):
_finish(window, stuck)
def test_the_run_hint_clears_once_run_is_available(make_window):
from PySide6.QtWidgets import QApplication
window = make_window(sensor_type="finger", source_mode="camera")
try:
window.brand_bar.btn_live.click()
QApplication.processEvents()
window._set_source_mode("video")
QApplication.processEvents()
assert window.toolbar.run_hint.text()
window._set_source_mode("camera")
QApplication.processEvents()
assert window.toolbar.btn_run.isEnabled()
assert window.toolbar.run_hint.text() == ""
finally:
window.close()