Port Transcribe to new UI; remove legacy dashboard

This commit is contained in:
James Babcock committed 2026-07-07 22:11:28 -07:00
1 parent 56d0f8c351
commit d0c30f9ca9
21 files changed
+392 -1291

No files matched your search

+16 -1
View File
@@ -1,8 +1,10 @@
import { Utils } from "@nativescript/core";
import { ImageSource, Utils } from "@nativescript/core";
import * as frameTimings from "./frame-timings";
declare const com: any;
const PREVIEW_BRIGHTEN_GAMMA = 0.7;
export type CommunicatorPhase =
| "disconnected"
| "connecting"
@@ -338,6 +340,19 @@ export class FaceclawCommunicatorBridge {
});
}
/** Phone-UI preview of the current composited screen, or null if none yet. */
getCompositePreview(): ImageSource | null {
if (!global.isAndroid) return null;
const bitmap = this.communicator.getCompositePreviewBitmap(PREVIEW_BRIGHTEN_GAMMA);
return bitmap ? new ImageSource(bitmap) : null;
}
/** Save the current composite as a raw 4bpp screenshot; returns the path (empty if none). */
saveRawCompositeScreenshot(): string {
if (!global.isAndroid) return "";
return String(this.communicator.saveRawCompositeScreenshot());
}
/**
* Create or reconfigure a compositor surface. Geometry changes take effect
* when the next frame is submitted.