Skip to main content

Crate droidkraft_gui

Crate droidkraft_gui 

Source
Expand description

DroidKraft GUI — a Zed GPUI desktop frontend for monitoring and controlling Android devices, built on top of droidkraft_core.

Re-exports§

pub use app::DroidGui;
pub use state::Route;
pub use state::Tab;

Modules§

app
The root gpui view: nav rail + either the fleet overview, a device workspace, or settings. All device state lives in Fleet; this module owns the worker, routing, and per-device actions.
cli
Hand-rolled command-line parsing (no extra dependencies).
commands
Framework-free catalogue of one-click device commands surfaced as buttons in the GUI. Kept independent of gpui so it can be unit-tested.
fmt
Framework-free formatting / classification helpers (unit-tested).
frame
The window frame, drawn by the app when the compositor does not draw one.
layout
Pure responsive-layout logic: window size → breakpoint → layout choices.
mirror_view
Reusable screen-mirror viewport (+ optional control chrome) as a gpui entity.
screen
Screen mirroring now lives in the droidkraft-mirror crate.
state
Framework-light application model: routing, per-device state, and the ordered Fleet that routes worker responses to the right device.
theme
Colour palette for the GUI, expressed as gpui Rgba values.
ui
gpui rendering, split by area. Each module adds impl DroidGui methods.
worker
Background worker thread that owns an AdbManager and services requests from the GUI without ever blocking the render thread.