ok-script 3.0.0b4__tar.gz → 3.0.2__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {ok_script-3.0.0b4 → ok_script-3.0.2}/PKG-INFO +1 -1
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/MainWindow.py +114 -18
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/about/AboutTab.py +2 -2
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/about/UpdateCard.py +18 -2
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/common/config.py +21 -3
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/en_US.qm +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/en_US.ts +32 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/es_ES.qm +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/es_ES.ts +32 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/ja_JP.qm +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/ja_JP.ts +32 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/ko_KR.qm +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/ko_KR.ts +32 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/zh_CN.qm +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/zh_CN.ts +32 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/zh_TW.qm +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/zh_TW.ts +32 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/__init__.py +3 -2
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/feedback.py +53 -4
- ok_script-3.0.2/ok/ui/qt/kit/mica.py +190 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/qss.py +17 -12
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/theme.py +84 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/window.py +111 -6
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/resources.py +10842 -10665
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/settings/settings_page.py +14 -1
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/tasks_page.py +4 -1
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/util/app.py +1 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok_script.egg-info/PKG-INFO +1 -1
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok_script.egg-info/SOURCES.txt +1 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_kit.py +19 -0
- ok_script-3.0.2/tests/test_main_window_startup_tab.py +149 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_main_window_system_theme.py +4 -2
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_pyappify_startup_update.py +49 -0
- ok_script-3.0.0b4/tests/test_main_window_startup_tab.py +0 -61
- {ok_script-3.0.0b4 → ok_script-3.0.2}/.agents/skills/develop/SKILL.md +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/.agents/skills/develop/agents/openai.yaml +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/.agents/skills/develop/references/windows-input.md +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/.agents/skills/generate-templates/SKILL.md +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/.agents/skills/reload-tasks/SKILL.md +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/.agents/skills/reload-tasks/agents/openai.yaml +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/.agents/skills/setup-env/SKILL.md +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/.agents/skills/setup-env/agents/openai.yaml +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/.agents/skills/setup-env/assets/ok-script-develop/SKILL.md +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/.agents/skills/setup-project/SKILL.md +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/.agents/skills/setup-project/agents/openai.yaml +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/.agents/skills/use_venv/SKILL.md +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/.agents/skills/write-test/SKILL.md +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/.agents/skills/write-test/agents/openai.yaml +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/LICENSE.txt +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/MANIFEST.in +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/README.md +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/diagnostics/qq_trace.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/docs/agent-setup.md +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/docs/feature-crops.md +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/docs/mcp.md +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/examples/mcp_observe.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/__main__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/alas/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/alas/emulator_base.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/alas/emulator_windows.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/alas/platform_windows.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/alas/utils.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/assets/default-icon.png +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/capture/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/capture/adb/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/capture/adb/deep.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/capture/adb/minitouch.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/capture/adb/nemu_ipc.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/capture/adb/nemu_utils.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/capture/adb/pool.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/capture/adb/timer.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/capture/adb/util.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/capture/windows/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/capture/windows/d3d11.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/capture/windows/dump.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/cli.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/capture_labels.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/code_runner.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/config_schema.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/downloads.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/events.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/icons.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/mcp_runner.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/mcp_server.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/notifications.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/plugin_staging.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/plugins.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/screenshot.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/script_editing.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/script_packager.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/script_templates.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/skills.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/start_controller.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/task_manager.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/template_store.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/translation.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/core/ui_config.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/DeviceManager.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture_methods/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture_methods/adb.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture_methods/base.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture_methods/bitblt.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture_methods/bitblt_utils.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture_methods/browser.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture_methods/desktop_duplication.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture_methods/hwnd_window.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture_methods/image.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture_methods/nemu_ipc.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture_methods/types.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture_methods/update.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture_methods/windows_graphics.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/capture_methods/windows_graphics_hdr.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/interaction.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/interaction_methods/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/interaction_methods/adb.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/interaction_methods/base.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/interaction_methods/browser.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/interaction_methods/do_nothing.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/interaction_methods/foreground_post_message.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/interaction_methods/genshin.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/interaction_methods/keys.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/interaction_methods/post_message.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/interaction_methods/pydirect.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/interaction_methods/pynput.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/interaction_methods/swipe.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/device/intercation.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/feature/Box.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/feature/Feature.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/feature/FeatureSet.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/feature/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/gui/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/gui/util/pyappify_startup.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/notification/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/notification/manager.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/notification/messenger_images.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/notification/pipeline.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/notification/ppocr.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/notification/providers.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/notification/system.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/notification/windows_messenger.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ocr/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ocr/download_paddle_model.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/Foundation/Collections.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/Foundation/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/Globalization/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/Graphics/Capture/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/Graphics/DirectX/Direct3D11/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/Graphics/DirectX/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/Graphics/Imaging/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/Graphics/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/Media/Ocr/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/Media/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/Security/Cryptography/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/Security/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/Storage/Streams/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/Storage/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/UI/ViewManagement/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/UI/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/Windows/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/delegate.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/export.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/idldsl.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/inspectable.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/roapi.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/types.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/rotypes/winstring.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/task/DiagnosisTask.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/task/TaskExecutor.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/task/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/task/exceptions.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/task/task.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/test/OKTestRunner.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/test/RunTests.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/test/TaskTestCase.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/test/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/third_party/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/third_party/paperclip.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/overlay/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/overlay/win32_gdi.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/Communicate.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/MessageWindow.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/StartController.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/about/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/common/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/debug/OverlayWidget.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/debug/Screenshot.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/debug/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/debug/diagnosis_page.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/events.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/GettextTranslator.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/path.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/i18n/update.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/buttons.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/cards.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/dialogs.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/gallery.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/icons.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/inputs.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/labels.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/layout.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/navigation.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/options.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/popover.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/switch.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/kit/tabs.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/overlay/OverlayWindow.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/overlay/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/plugins/PluginTab.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/plugins/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/plugins/imported_tabs.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/qt.qrc +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/settings/GlobalConfigTab.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/settings/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/settings/config_section.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/shell/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/shell/connection.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/shell/diagnostics.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/shell/lazy_page.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/shell/log_page.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/shell/nav_icons.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/shell/run_bar.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/start/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/EditTaskTab.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/MarkUpWindow.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/ModifyListDialog.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/PythonHighlighter.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/RecordScript.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/ScheduleTaskTab.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/ScriptPackager.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/TaskManger.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/TaskOpButton.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/TemplateFactory.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/TemplateTab.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/config_editors.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/config_form.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/mouse_buttons.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/tasks/schedule_index_sync.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/util/Alert.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/util/InitWorker.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/util/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/util/download.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/util/pip_util.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/util/pyappify_startup.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/util/touch_scroll.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/util/windows_thumbnail.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/widget/Card.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/widget/CustomTab.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/widget/FlowLayout.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/widget/ImageWidget.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/widget/ImportWarningDialog.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/widget/ListTableWidgetItem.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/widget/NumericTableWidgetItem.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/widget/SortingTableWidgetItem.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/widget/StartLoadingDialog.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/widget/Tab.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/widget/TabWidget.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/widget/UpdateConfigWidgetItem.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/widget/YesNonWidgetItem.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/ui/qt/widget/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/update/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/update/copy_ok_folder.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/update/inline_ok_requirements.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/Analytics.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/GlobalConfig.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/__init__.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/blur.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/clazz.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/collection.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/color.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/config.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/explorer.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/file.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/gpu_driver_settings.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/handler.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/i18n.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/logger.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/partial_sync_repo.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/print_hwnd.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/process.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/version.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/window.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok/util/windows_schedule.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok_script.egg-info/dependency_links.txt +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok_script.egg-info/entry_points.txt +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok_script.egg-info/not-zip-safe +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok_script.egg-info/requires.txt +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/ok_script.egg-info/top_level.txt +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/pyproject.toml +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/setup.cfg +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/setup.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_app.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_base_interaction.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_blur.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_box.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_capture_update.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_cli.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_core_events.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_core_ui_services.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_device_manager.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_diagnosis_page.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_executor_jobs.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_explorer.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_global_config.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_gpu_driver_settings.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_handler.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_headless_imports.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_inline_ok_requirements.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_lazy_page.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_log_page.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_logger.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_main_window_notifications.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_markup_window.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_mcp_cleanup.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_mcp_runner.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_mcp_server.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_mcp_setting.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_missing_frame.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_mouse_buttons.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_navigation_state.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_nemu_ipc_capture.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_notifications.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_ok_mutex.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_overlay_custom_draw.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_overlay_lifecycle.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_package_metadata.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_plugin_staging.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_plugin_tabs.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_plugins.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_process.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_process_mutex.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_qt_events.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_qt_page_layout.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_runtime_startup.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_schedule_startup.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_schedule_task_index_sync.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_screenshot_naming.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_screenshot_rendering.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_settings_page.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_shell.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_skills.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_start_controller.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_task_executor_next_frame.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_task_executor_queue.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_task_reloading.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_tasks_page.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_template_compression.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_template_generation.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_template_tab.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_touch_scroll.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_translation_fallback.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_ui_config.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_version.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_windows_graphics_capture.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_windows_graphics_hdr.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_windows_schedule_target_parse.py +0 -0
- {ok_script-3.0.0b4 → ok_script-3.0.2}/tests/test_windows_schedule_xml.py +0 -0
|
@@ -31,7 +31,7 @@ from ok.util.config import Config
|
|
|
31
31
|
|
|
32
32
|
from ok.ui.qt.Communicate import communicate
|
|
33
33
|
from ok.ui.qt.common.config import cfg as ui_config
|
|
34
|
-
from ok.ui.qt.kit import Dialog, KitWindow, NavigationView, Theme as KitTheme, set_toast_anchor, show_toast, \
|
|
34
|
+
from ok.ui.qt.kit import ContentLayer, Dialog, KitWindow, NavigationView, Theme as KitTheme, set_toast_anchor, show_toast, \
|
|
35
35
|
theme as kit_theme
|
|
36
36
|
from ok.ui.qt.kit.theme import set_style_property
|
|
37
37
|
from ok.ui.qt.shell.lazy_page import LazyPage
|
|
@@ -52,8 +52,34 @@ SECTION_GAME = "game"
|
|
|
52
52
|
SECTION_DEVELOP = "develop"
|
|
53
53
|
|
|
54
54
|
|
|
55
|
-
def
|
|
56
|
-
|
|
55
|
+
def game_starting_or_started(auto_start_enabled=False, start_task_requested=False, start_controller=None,
|
|
56
|
+
executor=None):
|
|
57
|
+
"""Whether startup launched, is launching, or will launch the game and its tasks."""
|
|
58
|
+
if auto_start_enabled or start_task_requested:
|
|
59
|
+
return True
|
|
60
|
+
if start_controller is not None and getattr(start_controller, 'starting', False):
|
|
61
|
+
return True
|
|
62
|
+
return executor is not None and not getattr(executor, 'paused', True)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
UPDATE_CHECK_GAME_PROCESS_CONFIG = 'update_only_game_exit'
|
|
66
|
+
GAME_PROCESS_UPDATE_DELAY_MS = 10_000
|
|
67
|
+
GAME_PROCESS_POLL_INTERVAL_MS = 2_000
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
def game_process_exists(device_manager):
|
|
71
|
+
"""Whether the selected game's window/process (or emulator device) is present."""
|
|
72
|
+
if device_manager is None:
|
|
73
|
+
return False
|
|
74
|
+
hwnd_window = getattr(device_manager, 'hwnd_window', None)
|
|
75
|
+
if hwnd_window is not None and getattr(hwnd_window, 'exists', False):
|
|
76
|
+
return True
|
|
77
|
+
try:
|
|
78
|
+
device = device_manager.get_preferred_device()
|
|
79
|
+
except Exception as error:
|
|
80
|
+
logger.debug(f'game_process_exists failed to read preferred device: {error}')
|
|
81
|
+
return False
|
|
82
|
+
return bool(device and device.get('connected'))
|
|
57
83
|
|
|
58
84
|
|
|
59
85
|
def fit_window_size(width, height, min_width, min_height, available_width, available_height):
|
|
@@ -103,11 +129,17 @@ class MainWindow(KitWindow):
|
|
|
103
129
|
self.run_bar = RunBar(exit_event)
|
|
104
130
|
set_style_property(self.title_bar, "fused", True)
|
|
105
131
|
|
|
132
|
+
# Pages sit on a content layer; with Mica or Acrylic the material shows only
|
|
133
|
+
# in the frame around it (title bar, run bar, sidebar).
|
|
134
|
+
self.content_layer = ContentLayer()
|
|
135
|
+
layer_layout = QVBoxLayout(self.content_layer)
|
|
136
|
+
layer_layout.setContentsMargins(0, 0, 0, 0)
|
|
137
|
+
layer_layout.addWidget(self.stack)
|
|
106
138
|
pages = QHBoxLayout()
|
|
107
139
|
pages.setContentsMargins(0, 0, 0, 0)
|
|
108
140
|
pages.setSpacing(0)
|
|
109
141
|
pages.addWidget(self.navigation)
|
|
110
|
-
pages.addWidget(self.
|
|
142
|
+
pages.addWidget(self.content_layer, 1)
|
|
111
143
|
body = QVBoxLayout(self.body)
|
|
112
144
|
body.setContentsMargins(0, 0, 0, 0)
|
|
113
145
|
body.setSpacing(0)
|
|
@@ -219,10 +251,12 @@ class MainWindow(KitWindow):
|
|
|
219
251
|
from ok.ui.qt.about.AboutTab import AboutTab
|
|
220
252
|
self.about_tab = AboutTab(config, exit_event=exit_event)
|
|
221
253
|
self.add_page(self.about_tab, "info", self.tr('About'), bottom=True)
|
|
254
|
+
self.game_process_poll_timer = None
|
|
222
255
|
self.update_check_timer = None
|
|
256
|
+
self.update_toast = None
|
|
223
257
|
if self.about_tab.update_card is not None:
|
|
224
258
|
self.about_tab.update_card.update_available_changed.connect(self._set_about_update_available)
|
|
225
|
-
self.about_tab.update_card.
|
|
259
|
+
self.about_tab.update_card.new_version_available.connect(self._show_new_version_toast)
|
|
226
260
|
|
|
227
261
|
dev = self.tr('Debug')
|
|
228
262
|
profile = config.get('profile', "")
|
|
@@ -294,21 +328,81 @@ class MainWindow(KitWindow):
|
|
|
294
328
|
def _set_about_update_available(self, available):
|
|
295
329
|
self.navigation.set_badge(self.about_tab.objectName(), bool(available))
|
|
296
330
|
|
|
297
|
-
def
|
|
331
|
+
def _game_starting_or_started(self):
|
|
332
|
+
from ok import og
|
|
333
|
+
ok_instance = getattr(og, 'ok', None)
|
|
334
|
+
args = getattr(ok_instance, 'args', None) or {}
|
|
335
|
+
return game_starting_or_started(
|
|
336
|
+
auto_start_enabled=bool(self.basic_global_config.get('Auto Start Game When App Starts')),
|
|
337
|
+
start_task_requested=bool(args.get('task')),
|
|
338
|
+
start_controller=getattr(getattr(og, 'app', None), 'start_controller', None),
|
|
339
|
+
executor=self.executor or getattr(og, 'executor', None),
|
|
340
|
+
)
|
|
341
|
+
|
|
342
|
+
def _startup_update_check(self):
|
|
298
343
|
if self.about_tab.update_card is None:
|
|
299
344
|
return
|
|
345
|
+
if not self._game_starting_or_started():
|
|
346
|
+
logger.info('startup pyappify update check')
|
|
347
|
+
self.about_tab.check_for_updates(automatic=True)
|
|
348
|
+
return
|
|
349
|
+
if not self.config.get(UPDATE_CHECK_GAME_PROCESS_CONFIG, False):
|
|
350
|
+
logger.info('skip startup pyappify update check because the game is starting or started')
|
|
351
|
+
return
|
|
352
|
+
logger.info('defer startup pyappify update check until the game exits')
|
|
353
|
+
self.game_process_poll_timer = QTimer(self)
|
|
354
|
+
self.game_process_poll_timer.timeout.connect(self._poll_game_process_for_update_check)
|
|
355
|
+
self.game_process_poll_timer.start(GAME_PROCESS_POLL_INTERVAL_MS)
|
|
356
|
+
|
|
357
|
+
@staticmethod
|
|
358
|
+
def _game_running_or_launching():
|
|
359
|
+
from ok import og
|
|
360
|
+
start_controller = getattr(getattr(og, 'app', None), 'start_controller', None)
|
|
361
|
+
if start_controller is not None and getattr(start_controller, 'starting', False):
|
|
362
|
+
return True
|
|
363
|
+
return game_process_exists(getattr(og, 'device_manager', None))
|
|
364
|
+
|
|
365
|
+
def _poll_game_process_for_update_check(self):
|
|
366
|
+
if self._game_running_or_launching():
|
|
367
|
+
return
|
|
368
|
+
self.game_process_poll_timer.stop()
|
|
369
|
+
logger.info(f'game exited, check pyappify update in {GAME_PROCESS_UPDATE_DELAY_MS}ms')
|
|
300
370
|
if self.update_check_timer is None:
|
|
301
371
|
self.update_check_timer = QTimer(self)
|
|
302
372
|
self.update_check_timer.setSingleShot(True)
|
|
303
|
-
self.update_check_timer.timeout.connect(self.
|
|
304
|
-
|
|
305
|
-
logger.info(f'schedule pyappify update check in {update_delay}ms')
|
|
306
|
-
self.update_check_timer.start(update_delay)
|
|
373
|
+
self.update_check_timer.timeout.connect(self._deferred_update_check)
|
|
374
|
+
self.update_check_timer.start(GAME_PROCESS_UPDATE_DELAY_MS)
|
|
307
375
|
|
|
308
|
-
def
|
|
309
|
-
if self.
|
|
310
|
-
logger.info('
|
|
311
|
-
self.
|
|
376
|
+
def _deferred_update_check(self):
|
|
377
|
+
if self._game_running_or_launching():
|
|
378
|
+
logger.info('game started again before the deferred pyappify update check, keep waiting for exit')
|
|
379
|
+
self.game_process_poll_timer.start(GAME_PROCESS_POLL_INTERVAL_MS)
|
|
380
|
+
return
|
|
381
|
+
self.about_tab.check_for_updates(automatic=True)
|
|
382
|
+
|
|
383
|
+
def _show_new_version_toast(self, version):
|
|
384
|
+
if self.update_toast is not None:
|
|
385
|
+
self.update_toast.close()
|
|
386
|
+
self.update_toast = show_toast(
|
|
387
|
+
self,
|
|
388
|
+
self.tr('Version {version} is available.').format(version=version),
|
|
389
|
+
title=self.tr('New version available'),
|
|
390
|
+
tone='accent',
|
|
391
|
+
duration=0,
|
|
392
|
+
actions=[
|
|
393
|
+
(self.tr('Update'), lambda: self._update_to_version(version), 'primary'),
|
|
394
|
+
(self.tr('Cancel'), None),
|
|
395
|
+
],
|
|
396
|
+
)
|
|
397
|
+
self.update_toast.destroyed.connect(self._forget_update_toast)
|
|
398
|
+
|
|
399
|
+
def _forget_update_toast(self, *_):
|
|
400
|
+
self.update_toast = None
|
|
401
|
+
|
|
402
|
+
def _update_to_version(self, version):
|
|
403
|
+
logger.info(f'update to {version} from new version toast')
|
|
404
|
+
self.switch_to(self.about_tab)
|
|
405
|
+
self.about_tab.update_card.update_to_version(version)
|
|
312
406
|
|
|
313
407
|
# --- theme ----------------------------------------------------------------
|
|
314
408
|
|
|
@@ -347,8 +441,9 @@ class MainWindow(KitWindow):
|
|
|
347
441
|
return self.get_system_accent_color()
|
|
348
442
|
|
|
349
443
|
def _sync_kit_theme(self):
|
|
350
|
-
"""Apply the saved theme mode and the Windows accent color."""
|
|
444
|
+
"""Apply the saved theme mode, window backdrop and the Windows accent color."""
|
|
351
445
|
kit_theme.set_theme(KitTheme(ui_config.theme_mode))
|
|
446
|
+
kit_theme.set_backdrop(ui_config.backdrop)
|
|
352
447
|
if accent := self._system_accent():
|
|
353
448
|
kit_theme.set_accent(accent)
|
|
354
449
|
|
|
@@ -512,7 +607,7 @@ class MainWindow(KitWindow):
|
|
|
512
607
|
if first_show:
|
|
513
608
|
QTimer.singleShot(0, self.bring_to_front)
|
|
514
609
|
QTimer.singleShot(250, self.show_startup_version_change_notice)
|
|
515
|
-
self.
|
|
610
|
+
self._startup_update_check()
|
|
516
611
|
|
|
517
612
|
# --- geometry -------------------------------------------------------------
|
|
518
613
|
|
|
@@ -681,8 +776,9 @@ class MainWindow(KitWindow):
|
|
|
681
776
|
|
|
682
777
|
def dispose(self):
|
|
683
778
|
"""Release app-wide hooks so a replacement window can take over, e.g. after a language change."""
|
|
684
|
-
|
|
685
|
-
|
|
779
|
+
for timer in (self.game_process_poll_timer, self.update_check_timer):
|
|
780
|
+
if timer is not None:
|
|
781
|
+
timer.stop()
|
|
686
782
|
self.tray.hide()
|
|
687
783
|
self.run_bar.dispose()
|
|
688
784
|
notification_manager = getattr(self, 'notification_manager', None)
|
|
@@ -258,9 +258,9 @@ class AboutTab(QWidget):
|
|
|
258
258
|
|
|
259
259
|
# --- updates --------------------------------------------------------------
|
|
260
260
|
|
|
261
|
-
def check_for_updates(self):
|
|
261
|
+
def check_for_updates(self, automatic=False):
|
|
262
262
|
if self.update_card is not None:
|
|
263
|
-
self.update_card.check_for_updates()
|
|
263
|
+
self.update_card.check_for_updates(automatic=automatic)
|
|
264
264
|
|
|
265
265
|
def _startup_version_change_title(self, version_change):
|
|
266
266
|
if version_change.action == "update":
|
|
@@ -47,6 +47,7 @@ class UpdateCard(QWidget):
|
|
|
47
47
|
"""Version picker and release-note viewer backed by the PyAppify launcher API."""
|
|
48
48
|
|
|
49
49
|
update_available_changed = Signal(bool)
|
|
50
|
+
new_version_available = Signal(str)
|
|
50
51
|
check_started = Signal()
|
|
51
52
|
_versions_loaded = Signal(object)
|
|
52
53
|
_update_finished = Signal(object)
|
|
@@ -64,6 +65,7 @@ class UpdateCard(QWidget):
|
|
|
64
65
|
self.download_url = download_url
|
|
65
66
|
self.versions = []
|
|
66
67
|
self._busy = False
|
|
68
|
+
self._automatic_check = False
|
|
67
69
|
logger.info(
|
|
68
70
|
f"initialized current_version={self.current_version!r}, "
|
|
69
71
|
f"pyappify_module={getattr(pyappify_module, '__file__', type(pyappify_module).__name__)!r}, "
|
|
@@ -90,7 +92,7 @@ class UpdateCard(QWidget):
|
|
|
90
92
|
self.check_progress = ProgressRing(16, parent=self)
|
|
91
93
|
self.check_progress.hide()
|
|
92
94
|
self.check_button = Button(self.tr("Check for updates"), "refresh", parent=self)
|
|
93
|
-
self.check_button.clicked.connect(self.check_for_updates)
|
|
95
|
+
self.check_button.clicked.connect(lambda _checked=False: self.check_for_updates())
|
|
94
96
|
self.update_button = Button(self.tr("Update"), "download", "primary", parent=self)
|
|
95
97
|
self.update_button.clicked.connect(self.update_to_selected_version)
|
|
96
98
|
self.update_button.setEnabled(False)
|
|
@@ -120,13 +122,15 @@ class UpdateCard(QWidget):
|
|
|
120
122
|
self._versions_loaded.connect(self._apply_versions)
|
|
121
123
|
self._update_finished.connect(self._apply_update_result)
|
|
122
124
|
|
|
123
|
-
def check_for_updates(self):
|
|
125
|
+
def check_for_updates(self, automatic=False):
|
|
126
|
+
"""Load the version list; ``automatic`` checks announce a newer version."""
|
|
124
127
|
if self._busy:
|
|
125
128
|
return
|
|
126
129
|
get_versions = getattr(self.pyappify_module, "get_version_list", None)
|
|
127
130
|
if not callable(get_versions):
|
|
128
131
|
self._show_error(self.tr("Update checking is not supported by this PyAppify version."))
|
|
129
132
|
return
|
|
133
|
+
self._automatic_check = automatic
|
|
130
134
|
self._set_busy(True, checking=True)
|
|
131
135
|
self.check_started.emit()
|
|
132
136
|
self._set_status(self.tr("Checking for updates…"))
|
|
@@ -137,6 +141,15 @@ class UpdateCard(QWidget):
|
|
|
137
141
|
f"pyappify.get_version_list(release_only={release_only})",
|
|
138
142
|
)
|
|
139
143
|
|
|
144
|
+
def update_to_version(self, version):
|
|
145
|
+
"""Select ``version`` in the picker and start changing to it."""
|
|
146
|
+
index = self.version_combo.findText(str(version))
|
|
147
|
+
if index < 0:
|
|
148
|
+
logger.error(f"update_to_version: {version!r} is not in the loaded version list")
|
|
149
|
+
return
|
|
150
|
+
self.version_combo.setCurrentIndex(index)
|
|
151
|
+
self.update_to_selected_version()
|
|
152
|
+
|
|
140
153
|
def update_to_selected_version(self):
|
|
141
154
|
if self._busy or self.version_combo.currentIndex() < 0:
|
|
142
155
|
return
|
|
@@ -168,6 +181,7 @@ class UpdateCard(QWidget):
|
|
|
168
181
|
|
|
169
182
|
def _apply_versions(self, result):
|
|
170
183
|
self._set_busy(False, refresh_selection=False)
|
|
184
|
+
automatic, self._automatic_check = self._automatic_check, False
|
|
171
185
|
successful, value = result
|
|
172
186
|
if not successful:
|
|
173
187
|
self.versions = []
|
|
@@ -194,6 +208,8 @@ class UpdateCard(QWidget):
|
|
|
194
208
|
None,
|
|
195
209
|
)
|
|
196
210
|
self.update_available_changed.emit(newest_update is not None)
|
|
211
|
+
if automatic and newest_update is not None:
|
|
212
|
+
self.new_version_available.emit(str(self.versions[newest_update]["version"]))
|
|
197
213
|
logger.info(
|
|
198
214
|
f"update_available={newest_update is not None}, current_version={self.current_version!r}, "
|
|
199
215
|
f"newest_update_index={newest_update!r}"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
# coding:utf-8
|
|
2
|
-
"""UI preferences stored in ``configs/ui_config.json``: language and
|
|
2
|
+
"""UI preferences stored in ``configs/ui_config.json``: language, theme and window backdrop."""
|
|
3
3
|
|
|
4
4
|
import json
|
|
5
5
|
import os
|
|
@@ -12,6 +12,9 @@ from ok.util.logger import Logger
|
|
|
12
12
|
|
|
13
13
|
logger = Logger.get_logger(__name__)
|
|
14
14
|
|
|
15
|
+
BACKDROPS = ("mica", "acrylic", "none")
|
|
16
|
+
DEFAULT_BACKDROP = "acrylic"
|
|
17
|
+
|
|
15
18
|
|
|
16
19
|
class Language(Enum):
|
|
17
20
|
""" Language enumeration """
|
|
@@ -39,7 +42,7 @@ def deserialize_language(value) -> Language:
|
|
|
39
42
|
|
|
40
43
|
|
|
41
44
|
class UiConfig(QObject):
|
|
42
|
-
"""The language and the
|
|
45
|
+
"""The language, the theme mode and the window backdrop, all applied live.
|
|
43
46
|
|
|
44
47
|
The file also accepts the older qfluentwidgets layout
|
|
45
48
|
(``MainWindow.Language`` and ``QFluentWidgets.ThemeMode``).
|
|
@@ -58,6 +61,12 @@ class UiConfig(QObject):
|
|
|
58
61
|
self.theme_mode = str(data.get("theme", legacy_theme or "auto")).lower()
|
|
59
62
|
if self.theme_mode not in ("light", "dark", "auto"):
|
|
60
63
|
self.theme_mode = "auto"
|
|
64
|
+
# Older files store only whether the effect is on ("mica", or qfluentwidgets'
|
|
65
|
+
# MicaEnabled, which was on by default); on maps to the current default.
|
|
66
|
+
legacy_on = data.get("mica", (data.get("MainWindow") or {}).get("MicaEnabled", True))
|
|
67
|
+
self.backdrop = str(data.get("backdrop", DEFAULT_BACKDROP if legacy_on else "none")).lower()
|
|
68
|
+
if self.backdrop not in BACKDROPS:
|
|
69
|
+
self.backdrop = DEFAULT_BACKDROP
|
|
61
70
|
|
|
62
71
|
def _read(self) -> dict:
|
|
63
72
|
try:
|
|
@@ -74,7 +83,8 @@ class UiConfig(QObject):
|
|
|
74
83
|
try:
|
|
75
84
|
os.makedirs(os.path.dirname(self.path), exist_ok=True)
|
|
76
85
|
with open(self.path, "w", encoding="utf-8") as file:
|
|
77
|
-
json.dump({"language": serialize_language(self.language), "theme": self.theme_mode
|
|
86
|
+
json.dump({"language": serialize_language(self.language), "theme": self.theme_mode,
|
|
87
|
+
"backdrop": self.backdrop}, file, indent=4)
|
|
78
88
|
except OSError as error:
|
|
79
89
|
logger.error(f"Failed to save {self.path}", error)
|
|
80
90
|
|
|
@@ -93,5 +103,13 @@ class UiConfig(QObject):
|
|
|
93
103
|
self.save()
|
|
94
104
|
self.theme_changed.emit()
|
|
95
105
|
|
|
106
|
+
def set_backdrop(self, backdrop: str) -> None:
|
|
107
|
+
backdrop = getattr(backdrop, "value", backdrop)
|
|
108
|
+
if backdrop == self.backdrop or backdrop not in BACKDROPS:
|
|
109
|
+
return
|
|
110
|
+
self.backdrop = backdrop
|
|
111
|
+
self.save()
|
|
112
|
+
self.theme_changed.emit()
|
|
113
|
+
|
|
96
114
|
|
|
97
115
|
cfg = UiConfig(get_relative_path('configs', "ui_config.json"))
|
|
Binary file
|
|
@@ -523,6 +523,18 @@
|
|
|
523
523
|
<source>{owner} is controlling the app. Other tasks are stopped.</source>
|
|
524
524
|
<translation>{owner} is controlling the app. Other tasks are stopped.</translation>
|
|
525
525
|
</message>
|
|
526
|
+
<message>
|
|
527
|
+
<source>Cancel</source>
|
|
528
|
+
<translation>Cancel</translation>
|
|
529
|
+
</message>
|
|
530
|
+
<message>
|
|
531
|
+
<source>New version available</source>
|
|
532
|
+
<translation>New version available</translation>
|
|
533
|
+
</message>
|
|
534
|
+
<message>
|
|
535
|
+
<source>Version {version} is available.</source>
|
|
536
|
+
<translation>Version {version} is available.</translation>
|
|
537
|
+
</message>
|
|
526
538
|
</context>
|
|
527
539
|
<context>
|
|
528
540
|
<name>MessageWindow</name>
|
|
@@ -765,6 +777,26 @@
|
|
|
765
777
|
<source>Configuration takes effect after restart</source>
|
|
766
778
|
<translation>Configuration takes effect after restart</translation>
|
|
767
779
|
</message>
|
|
780
|
+
<message>
|
|
781
|
+
<source>Window Material</source>
|
|
782
|
+
<translation>Window Material</translation>
|
|
783
|
+
</message>
|
|
784
|
+
<message>
|
|
785
|
+
<source>Mica tints the window with your wallpaper, Acrylic blurs what is behind it</source>
|
|
786
|
+
<translation>Mica tints the window with your wallpaper, Acrylic blurs what is behind it</translation>
|
|
787
|
+
</message>
|
|
788
|
+
<message>
|
|
789
|
+
<source>Mica</source>
|
|
790
|
+
<translation>Mica</translation>
|
|
791
|
+
</message>
|
|
792
|
+
<message>
|
|
793
|
+
<source>Acrylic</source>
|
|
794
|
+
<translation>Acrylic</translation>
|
|
795
|
+
</message>
|
|
796
|
+
<message>
|
|
797
|
+
<source>None</source>
|
|
798
|
+
<translation>None</translation>
|
|
799
|
+
</message>
|
|
768
800
|
</context>
|
|
769
801
|
<context>
|
|
770
802
|
<name>StartButton</name>
|
|
Binary file
|
|
@@ -533,6 +533,18 @@
|
|
|
533
533
|
<source>{owner} is controlling the app. Other tasks are stopped.</source>
|
|
534
534
|
<translation>{owner} está controlando la aplicación. Las demás tareas están detenidas.</translation>
|
|
535
535
|
</message>
|
|
536
|
+
<message>
|
|
537
|
+
<source>Cancel</source>
|
|
538
|
+
<translation>Cancelar</translation>
|
|
539
|
+
</message>
|
|
540
|
+
<message>
|
|
541
|
+
<source>New version available</source>
|
|
542
|
+
<translation>Nueva versión disponible</translation>
|
|
543
|
+
</message>
|
|
544
|
+
<message>
|
|
545
|
+
<source>Version {version} is available.</source>
|
|
546
|
+
<translation>La versión {version} está disponible.</translation>
|
|
547
|
+
</message>
|
|
536
548
|
</context>
|
|
537
549
|
<context>
|
|
538
550
|
<name>MessageWindow</name>
|
|
@@ -763,6 +775,26 @@
|
|
|
763
775
|
<source>Configuration takes effect after restart</source>
|
|
764
776
|
<translation>La configuración se aplicará después de reiniciar</translation>
|
|
765
777
|
</message>
|
|
778
|
+
<message>
|
|
779
|
+
<source>Window Material</source>
|
|
780
|
+
<translation>Material de la ventana</translation>
|
|
781
|
+
</message>
|
|
782
|
+
<message>
|
|
783
|
+
<source>Mica tints the window with your wallpaper, Acrylic blurs what is behind it</source>
|
|
784
|
+
<translation>Mica tiñe la ventana con tu fondo de pantalla; Acrílico desenfoca lo que hay detrás</translation>
|
|
785
|
+
</message>
|
|
786
|
+
<message>
|
|
787
|
+
<source>Mica</source>
|
|
788
|
+
<translation>Mica</translation>
|
|
789
|
+
</message>
|
|
790
|
+
<message>
|
|
791
|
+
<source>Acrylic</source>
|
|
792
|
+
<translation>Acrílico</translation>
|
|
793
|
+
</message>
|
|
794
|
+
<message>
|
|
795
|
+
<source>None</source>
|
|
796
|
+
<translation>Ninguno</translation>
|
|
797
|
+
</message>
|
|
766
798
|
</context>
|
|
767
799
|
<context>
|
|
768
800
|
<name>StartButton</name>
|
|
Binary file
|
|
@@ -533,6 +533,18 @@
|
|
|
533
533
|
<source>{owner} is controlling the app. Other tasks are stopped.</source>
|
|
534
534
|
<translation>{owner} がアプリを操作中です。他のタスクは停止しています。</translation>
|
|
535
535
|
</message>
|
|
536
|
+
<message>
|
|
537
|
+
<source>Cancel</source>
|
|
538
|
+
<translation>キャンセル</translation>
|
|
539
|
+
</message>
|
|
540
|
+
<message>
|
|
541
|
+
<source>New version available</source>
|
|
542
|
+
<translation>新しいバージョンがあります</translation>
|
|
543
|
+
</message>
|
|
544
|
+
<message>
|
|
545
|
+
<source>Version {version} is available.</source>
|
|
546
|
+
<translation>バージョン {version} が利用可能です。</translation>
|
|
547
|
+
</message>
|
|
536
548
|
</context>
|
|
537
549
|
<context>
|
|
538
550
|
<name>MessageWindow</name>
|
|
@@ -763,6 +775,26 @@
|
|
|
763
775
|
<source>Configuration takes effect after restart</source>
|
|
764
776
|
<translation>設定は再起動後に有効になります</translation>
|
|
765
777
|
</message>
|
|
778
|
+
<message>
|
|
779
|
+
<source>Window Material</source>
|
|
780
|
+
<translation>ウィンドウの素材</translation>
|
|
781
|
+
</message>
|
|
782
|
+
<message>
|
|
783
|
+
<source>Mica tints the window with your wallpaper, Acrylic blurs what is behind it</source>
|
|
784
|
+
<translation>マイカは壁紙の色でウィンドウを色付けし、アクリルは背後を透かしてぼかします</translation>
|
|
785
|
+
</message>
|
|
786
|
+
<message>
|
|
787
|
+
<source>Mica</source>
|
|
788
|
+
<translation>マイカ</translation>
|
|
789
|
+
</message>
|
|
790
|
+
<message>
|
|
791
|
+
<source>Acrylic</source>
|
|
792
|
+
<translation>アクリル</translation>
|
|
793
|
+
</message>
|
|
794
|
+
<message>
|
|
795
|
+
<source>None</source>
|
|
796
|
+
<translation>なし</translation>
|
|
797
|
+
</message>
|
|
766
798
|
</context>
|
|
767
799
|
<context>
|
|
768
800
|
<name>StartButton</name>
|
|
Binary file
|
|
@@ -534,6 +534,18 @@
|
|
|
534
534
|
<source>{owner} is controlling the app. Other tasks are stopped.</source>
|
|
535
535
|
<translation>{owner}이(가) 앱을 제어하고 있습니다. 다른 작업은 중지되었습니다.</translation>
|
|
536
536
|
</message>
|
|
537
|
+
<message>
|
|
538
|
+
<source>Cancel</source>
|
|
539
|
+
<translation>취소</translation>
|
|
540
|
+
</message>
|
|
541
|
+
<message>
|
|
542
|
+
<source>New version available</source>
|
|
543
|
+
<translation>새 버전을 사용할 수 있습니다</translation>
|
|
544
|
+
</message>
|
|
545
|
+
<message>
|
|
546
|
+
<source>Version {version} is available.</source>
|
|
547
|
+
<translation>버전 {version}을(를) 사용할 수 있습니다.</translation>
|
|
548
|
+
</message>
|
|
537
549
|
</context>
|
|
538
550
|
<context>
|
|
539
551
|
<name>MessageWindow</name>
|
|
@@ -764,6 +776,26 @@
|
|
|
764
776
|
<source>Configuration takes effect after restart</source>
|
|
765
777
|
<translation>다시 시작하면 구성이 적용됩니다</translation>
|
|
766
778
|
</message>
|
|
779
|
+
<message>
|
|
780
|
+
<source>Window Material</source>
|
|
781
|
+
<translation>창 재질</translation>
|
|
782
|
+
</message>
|
|
783
|
+
<message>
|
|
784
|
+
<source>Mica tints the window with your wallpaper, Acrylic blurs what is behind it</source>
|
|
785
|
+
<translation>Mica는 바탕 화면 배경으로 창에 색을 입히고, 아크릴은 창 뒤를 흐리게 보여 줍니다</translation>
|
|
786
|
+
</message>
|
|
787
|
+
<message>
|
|
788
|
+
<source>Mica</source>
|
|
789
|
+
<translation>Mica</translation>
|
|
790
|
+
</message>
|
|
791
|
+
<message>
|
|
792
|
+
<source>Acrylic</source>
|
|
793
|
+
<translation>아크릴</translation>
|
|
794
|
+
</message>
|
|
795
|
+
<message>
|
|
796
|
+
<source>None</source>
|
|
797
|
+
<translation>없음</translation>
|
|
798
|
+
</message>
|
|
767
799
|
</context>
|
|
768
800
|
<context>
|
|
769
801
|
<name>StartButton</name>
|
|
Binary file
|
|
@@ -523,6 +523,18 @@
|
|
|
523
523
|
<source>{owner} is controlling the app. Other tasks are stopped.</source>
|
|
524
524
|
<translation>{owner} 正在控制本应用,其他任务已停止。</translation>
|
|
525
525
|
</message>
|
|
526
|
+
<message>
|
|
527
|
+
<source>Cancel</source>
|
|
528
|
+
<translation>取消</translation>
|
|
529
|
+
</message>
|
|
530
|
+
<message>
|
|
531
|
+
<source>New version available</source>
|
|
532
|
+
<translation>有新版本可用</translation>
|
|
533
|
+
</message>
|
|
534
|
+
<message>
|
|
535
|
+
<source>Version {version} is available.</source>
|
|
536
|
+
<translation>版本 {version} 已发布。</translation>
|
|
537
|
+
</message>
|
|
526
538
|
</context>
|
|
527
539
|
<context>
|
|
528
540
|
<name>MessageWindow</name>
|
|
@@ -765,6 +777,26 @@
|
|
|
765
777
|
<source>Configuration takes effect after restart</source>
|
|
766
778
|
<translation>配置在重启后生效</translation>
|
|
767
779
|
</message>
|
|
780
|
+
<message>
|
|
781
|
+
<source>Window Material</source>
|
|
782
|
+
<translation>窗口材质</translation>
|
|
783
|
+
</message>
|
|
784
|
+
<message>
|
|
785
|
+
<source>Mica tints the window with your wallpaper, Acrylic blurs what is behind it</source>
|
|
786
|
+
<translation>云母以桌面壁纸为窗口着色,亚克力会模糊窗口后方的内容</translation>
|
|
787
|
+
</message>
|
|
788
|
+
<message>
|
|
789
|
+
<source>Mica</source>
|
|
790
|
+
<translation>云母</translation>
|
|
791
|
+
</message>
|
|
792
|
+
<message>
|
|
793
|
+
<source>Acrylic</source>
|
|
794
|
+
<translation>亚克力</translation>
|
|
795
|
+
</message>
|
|
796
|
+
<message>
|
|
797
|
+
<source>None</source>
|
|
798
|
+
<translation>无</translation>
|
|
799
|
+
</message>
|
|
768
800
|
</context>
|
|
769
801
|
<context>
|
|
770
802
|
<name>StartButton</name>
|
|
Binary file
|
|
@@ -533,6 +533,18 @@
|
|
|
533
533
|
<source>{owner} is controlling the app. Other tasks are stopped.</source>
|
|
534
534
|
<translation>{owner} 正在控制本應用程式,其他任務已停止。</translation>
|
|
535
535
|
</message>
|
|
536
|
+
<message>
|
|
537
|
+
<source>Cancel</source>
|
|
538
|
+
<translation>取消</translation>
|
|
539
|
+
</message>
|
|
540
|
+
<message>
|
|
541
|
+
<source>New version available</source>
|
|
542
|
+
<translation>有新版本可用</translation>
|
|
543
|
+
</message>
|
|
544
|
+
<message>
|
|
545
|
+
<source>Version {version} is available.</source>
|
|
546
|
+
<translation>版本 {version} 已發布。</translation>
|
|
547
|
+
</message>
|
|
536
548
|
</context>
|
|
537
549
|
<context>
|
|
538
550
|
<name>MessageWindow</name>
|
|
@@ -763,6 +775,26 @@
|
|
|
763
775
|
<source>Configuration takes effect after restart</source>
|
|
764
776
|
<translation>設定將在重啟後生效</translation>
|
|
765
777
|
</message>
|
|
778
|
+
<message>
|
|
779
|
+
<source>Window Material</source>
|
|
780
|
+
<translation>視窗材質</translation>
|
|
781
|
+
</message>
|
|
782
|
+
<message>
|
|
783
|
+
<source>Mica tints the window with your wallpaper, Acrylic blurs what is behind it</source>
|
|
784
|
+
<translation>雲母以桌布為視窗著色,壓克力會模糊視窗後方的內容</translation>
|
|
785
|
+
</message>
|
|
786
|
+
<message>
|
|
787
|
+
<source>Mica</source>
|
|
788
|
+
<translation>雲母</translation>
|
|
789
|
+
</message>
|
|
790
|
+
<message>
|
|
791
|
+
<source>Acrylic</source>
|
|
792
|
+
<translation>壓克力</translation>
|
|
793
|
+
</message>
|
|
794
|
+
<message>
|
|
795
|
+
<source>None</source>
|
|
796
|
+
<translation>無</translation>
|
|
797
|
+
</message>
|
|
766
798
|
</context>
|
|
767
799
|
<context>
|
|
768
800
|
<name>StartButton</name>
|
|
@@ -19,10 +19,11 @@ from ok.ui.qt.kit.popover import Popover
|
|
|
19
19
|
from ok.ui.qt.kit.switch import Switch
|
|
20
20
|
from ok.ui.qt.kit.tabs import TabItem, TabStrip
|
|
21
21
|
from ok.ui.qt.kit.theme import Theme, theme
|
|
22
|
-
from ok.ui.qt.kit.window import KitWindow, TitleBar
|
|
22
|
+
from ok.ui.qt.kit.window import ContentLayer, KitWindow, TitleBar
|
|
23
23
|
|
|
24
24
|
__all__ = [
|
|
25
|
-
"Button", "Card", "ComboBox", "Dialog", "FlowLayout", "ICON_NAMES", "KitWindow", "Label",
|
|
25
|
+
"Button", "Card", "ComboBox", "ContentLayer", "Dialog", "FlowLayout", "ICON_NAMES", "KitWindow", "Label",
|
|
26
|
+
"NavItem",
|
|
26
27
|
"NavigationView", "NumberBox", "OptionCard", "OptionGroup", "Pill", "Popover", "ProgressRing", "SettingGroup",
|
|
27
28
|
"SettingRow", "StatusDot", "Switch", "TabItem", "TabStrip", "Theme", "TitleBar", "Toast", "confirm", "icon",
|
|
28
29
|
"load_icon", "set_toast_anchor", "set_toast_top_margin", "show_toast", "theme",
|