Face unlock window: live camera preview, Snap, thumbnails, one password on Apply
CI / test (push) Failing after 12m30s
CI / test (push) Failing after 12m30s
Settings > Session "Add or remove faces…" (and "Remove…" on a face) opens a compositor-drawn Face unlock window instead of running root steps one by one: - chandra-face camera runs as the user (no password): it streams a small live picture with the face box and a cropped thumbnail per snap; the snaps' embeddings stay in that process, nothing is written to disk. - Click a snap to drop it; mark saved faces Remove/Keep. - Apply saves the snaps as one face and removes the marked ones in one root `chandra-face apply` (JSON on stdin, validated) through run0/pkexec: one password prompt. - New raster host function image-pixels (host-wasm, wasmhost, native) for the window's pictures. Tests: camera session and apply in face/test_face.py; the window end to end against a fake tool in compositor/host/face_test.mbt. Docs explain why the change itself still needs root. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DPL5hhiJfJNAYqWzQiuKMf
This commit is contained in:
74 files changed
+2617
-89
No files matched your search
+27
@@ -0,0 +1,27 @@
|
||||
// Generated using `moon info`, DON'T EDIT IT
|
||||
package "chandra/desktop/components/icon-desktop/gen/interface/chandra/desktop/desktop-module"
|
||||
|
||||
import {
|
||||
"chandra/desktop/interface/chandra/desktop/types",
|
||||
}
|
||||
|
||||
// Values
|
||||
pub fn backdrop() -> WallpaperMode
|
||||
|
||||
pub fn on_scroll(@types.Point, Int32, Int32) -> Bool
|
||||
|
||||
pub fn tick(UInt32) -> UInt32
|
||||
|
||||
// Errors
|
||||
|
||||
// Types and methods
|
||||
pub(all) enum WallpaperMode {
|
||||
OVER_WALLPAPER
|
||||
REPLACE_WALLPAPER
|
||||
}
|
||||
pub fn WallpaperMode::from(Int32) -> Self
|
||||
pub fn WallpaperMode::ordinal(Self) -> Int32
|
||||
|
||||
// Type aliases
|
||||
|
||||
// Traits
|
||||
+21
@@ -0,0 +1,21 @@
|
||||
// Generated using `moon info`, DON'T EDIT IT
|
||||
package "chandra/desktop/components/icon-desktop/gen/interface/chandra/desktop/module-config"
|
||||
|
||||
// Values
|
||||
pub fn config_items() -> Array[ConfigItem]
|
||||
|
||||
pub fn set_config(String, String) -> Bool
|
||||
|
||||
// Errors
|
||||
|
||||
// Types and methods
|
||||
pub(all) struct ConfigItem {
|
||||
key : String
|
||||
label : String
|
||||
choices : Array[String]
|
||||
value : String
|
||||
}
|
||||
|
||||
// Type aliases
|
||||
|
||||
// Traits
|
||||
@@ -0,0 +1,42 @@
|
||||
// Generated using `moon info`, DON'T EDIT IT
|
||||
package "chandra/desktop/components/icon-desktop/gen/interface/chandra/desktop/plasmoid"
|
||||
|
||||
import {
|
||||
"chandra/desktop/interface/chandra/desktop/types",
|
||||
}
|
||||
|
||||
// Values
|
||||
pub fn info() -> PlasmoidInfo
|
||||
|
||||
pub fn on_event(Surface, @types.InputEvent) -> Bool
|
||||
|
||||
pub fn popup() -> PopupSurface?
|
||||
|
||||
pub fn render(@types.Size) -> Array[@types.DrawOp]
|
||||
|
||||
// Errors
|
||||
|
||||
// Types and methods
|
||||
pub(all) struct PlasmoidInfo {
|
||||
id : String
|
||||
name : String
|
||||
preferred : @types.Size
|
||||
min_width : UInt32
|
||||
stretch : Bool
|
||||
}
|
||||
|
||||
pub(all) struct PopupSurface {
|
||||
size : @types.Size
|
||||
ops : Array[@types.DrawOp]
|
||||
}
|
||||
|
||||
pub(all) enum Surface {
|
||||
WIDGET
|
||||
POPUP
|
||||
}
|
||||
pub fn Surface::from(Int32) -> Self
|
||||
pub fn Surface::ordinal(Self) -> Int32
|
||||
|
||||
// Type aliases
|
||||
|
||||
// Traits
|
||||
@@ -0,0 +1,13 @@
|
||||
// Generated using `moon info`, DON'T EDIT IT
|
||||
package "chandra/desktop/components/icon-desktop/gen"
|
||||
|
||||
// Values
|
||||
pub fn mbt_ffi_cabi_realloc(Int32, Int32, Int32, Int32) -> Int32
|
||||
|
||||
// Errors
|
||||
|
||||
// Types and methods
|
||||
|
||||
// Type aliases
|
||||
|
||||
// Traits
|
||||
Reference in new issue
Block a user