changed customer to studio

This commit is contained in:
ykcheungab
2026-09-12 14:03:00 +08:00
parent a2db648560
commit 904c27125f
71 changed files with 112 additions and 3959 deletions
+6 -6
View File
@@ -1,7 +1,7 @@
#!/usr/bin/env python3
"""Dependency-free smoke run for the customer UI.
"""Dependency-free smoke run for the studio UI.
``pytest`` is the canonical runner (``apps/customer/tests``), but this script
``pytest`` is the canonical runner (``apps/studio/tests``), but this script
needs nothing beyond the app's own runtime dependencies, so it can be used in
minimal environments:
@@ -100,7 +100,7 @@ GRAPHIC_PAIRS: tuple[tuple[str, tuple[str, ...]], ...] = (
VIZ_KEYS = ("plot_fn", "plot_fx", "plot_fy")
# Deliberate, documented exemptions (see apps/customer/docs/ui-palette.md):
# Deliberate, documented exemptions (see apps/studio/docs/ui-palette.md):
# decorative 1px container outlines, and disabled states which WCAG 1.4.3
# explicitly exempts.
DECORATIVE_PAIRS: tuple[tuple[str, tuple[str, ...]], ...] = (
@@ -261,7 +261,7 @@ def main() -> int:
from orisys_app_shared.force.calibration_io import CalSample
from orisys_app_shared.i18n import set_locale, t
from orisys_app_shared.theme import build_qss, load_colors
from orisys_customer.app_window import CustomerMainWindow
from orisys_studio.app_window import StudioMainWindow
app = QApplication.instance() or QApplication(sys.argv)
set_locale("zh_CN")
@@ -297,7 +297,7 @@ def main() -> int:
section(f"window {theme}/{sensor}")
scene_count += 1
app.setStyleSheet(build_qss(theme))
window = CustomerMainWindow(
window = StudioMainWindow(
prefs={
"language": "zh_CN",
"theme": theme,
@@ -401,7 +401,7 @@ def main() -> int:
section("small window")
app.setStyleSheet(build_qss("dark"))
window = CustomerMainWindow(
window = StudioMainWindow(
prefs={
"language": "en_US",
"theme": "dark",
+4 -4
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
"""Render the customer UI offscreen to PNG files for visual review.
"""Render the studio UI offscreen to PNG files for visual review.
The tool never opens a camera and never starts acquisition: it builds the real
main window, optionally injects deterministic demo data, then grabs the window.
@@ -63,7 +63,7 @@ def _demo_data(window) -> None:
)
from orisys_app_shared.theme import color
from orisys_customer.app_window import _bgr_to_qimage
from orisys_studio.app_window import _bgr_to_qimage
size = 320
grid_y, grid_x = np.mgrid[0:size, 0:size].astype(np.float32)
@@ -110,7 +110,7 @@ def main() -> int:
from orisys_app_shared.i18n import set_locale
from orisys_app_shared.theme import build_qss
from orisys_customer.app_window import CustomerMainWindow
from orisys_studio.app_window import StudioMainWindow
app = QApplication(sys.argv)
set_locale(args.lang)
@@ -125,7 +125,7 @@ def main() -> int:
"show_fps": True,
"image_view_mode": args.view,
}
window = CustomerMainWindow(prefs=prefs)
window = StudioMainWindow(prefs=prefs)
window.resize(width, height)
window.show()
app.processEvents()