forked from 1b-agent/opencadstudio-upstream
feat(start): replace info cards with a clickable intro video
Swap the two "Free and open source" / "Community driven" text cards on the start page for the intro-video thumbnail with a play badge; clicking it opens the video in the system browser (new Message::OpenUrl → sys::open_url). The bundled thumbnail Handle is built once via OnceLock — Handle::from_bytes mints a fresh unique id per call, so rebuilding it per view re-decoded and re-uploaded the JPEG every frame and the image only appeared after a long delay. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
495b13ec4f
commit
ff23abee01
4 files changed
+75
-36
No files matched your search
@@ -1009,6 +1009,8 @@ pub enum Message {
|
||||
/// Open a path from the Start tab's recent-documents list (skips the
|
||||
/// file picker; the path is already known).
|
||||
OpenRecent(PathBuf),
|
||||
/// Open a URL in the system browser (start-page intro video, links).
|
||||
OpenUrl(String),
|
||||
/// Drop a path from the recent-documents list.
|
||||
RecentRemove(PathBuf),
|
||||
/// User clicked Cancel on the loading overlay. The parser thread keeps
|
||||
|
||||
Reference in new issue
Block a user