Designer click handling: - Fix DPI scaling in MouseButtonCallback and CursorPosCallback - Scale coordinates from window space to framebuffer/RmlUi context - Remove window resizing in ResizeToPhone (caused DPI mismatches) Test framework: - Fix SendMouseDown to use MOUSEEVENTF_MOVE before button down - Remove double-scaling in ScaleToPhysical (WindowController handles it) - All 5 UI navigation tests now pass Kernel API: - Add goHome() Lua function to return to home screen - Stops any running third-party apps before navigating Test app: - Update sandbox-test to use goHome() instead of goBack() Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
47 lines
1.4 KiB
Plaintext
47 lines
1.4 KiB
Plaintext
<rml>
|
|
<head>
|
|
<title>Sandbox Test</title>
|
|
<link type="text/rcss" href="styles.rcss"/>
|
|
<script src="app.lua"></script>
|
|
</head>
|
|
<body>
|
|
<div class="app-bar">
|
|
<div class="app-bar-nav btn-icon" onclick="goHome()">
|
|
<span class="icon"><</span>
|
|
</div>
|
|
<div class="app-bar-title">Sandbox Test</div>
|
|
</div>
|
|
|
|
<div class="content">
|
|
<div class="card">
|
|
<div class="card-title">Timer Test</div>
|
|
<div id="timer-status">Not started</div>
|
|
<button onclick="testTimer()">Start Timer</button>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="card-title">JSON Test</div>
|
|
<div id="json-status">Not tested</div>
|
|
<button onclick="testJSON()">Test JSON</button>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="card-title">Crypto Test</div>
|
|
<div id="crypto-status">Not tested</div>
|
|
<button onclick="testCrypto()">Test Crypto</button>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="card-title">Storage Test</div>
|
|
<div id="storage-status">Not tested</div>
|
|
<button onclick="testStorage()">Test Storage</button>
|
|
</div>
|
|
|
|
<div class="card">
|
|
<div class="card-title">Results</div>
|
|
<div id="results">Click buttons above to run tests</div>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</rml>
|