Every scene in tools/manual aimed at window pixels written in by hand, so a panel that gained a row moved every slider under it and the recording went on dragging where the slider used to be. The develop column has already moved that way (Compose now sits above Adjust), and nothing said. A build with the `automation` feature listens on the Unix socket named by DR_AUTOMATION and answers where an element is: by its accessible label, the name a screen reader reads, or by its markup id for the few things that are not controls (the canvas, the crop rectangle). It uses Slint's element queries, which need the compiler's debug tables, so the feature also turns those on in build.rs. It only answers questions; the input is still xdotool's real pointer. No default build has the feature, and one that has it listens only when the variable is set. drive.py gains click-on, drag-on, hold-on, wait-for, wait-gone, labels and ids. The grid's cells are now named by their file, each rating star by its value, the sidebar's + as "New collection", and the Adjust heading's reset as "Reset all adjustments" - controls a screen reader could not reach before either.
31 lines
1.1 KiB
TOML
31 lines
1.1 KiB
TOML
[package]
|
|
name = "darkroom-desktop"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
rust-version.workspace = true
|
|
license.workspace = true
|
|
|
|
[dependencies]
|
|
dr-ui = { workspace = true, features = ["scene-model"] }
|
|
# For the panic hook and the log sink, directly rather than through dr-ui:
|
|
# both have to be installed before `dr_ui::run`, because a panic during startup
|
|
# is exactly the one they exist to catch and record (NFR-OPS-1, NFR-OPS-2).
|
|
dr-plat.workspace = true
|
|
anyhow.workspace = true
|
|
env_logger.workspace = true
|
|
log.workspace = true
|
|
|
|
# The Windows resource block — icon and version — compiled in by build.rs.
|
|
# Unconditional rather than under `[target.'cfg(windows)']`, because a cfg on
|
|
# a build-dependency is evaluated against the *host* — the machine running
|
|
# the build script — and this is built for Windows from Linux. The script
|
|
# itself returns before touching the crate on every other target.
|
|
[build-dependencies]
|
|
winresource = "0.1"
|
|
|
|
[features]
|
|
default = []
|
|
# The manual's recording hook (dr-ui's `automation`); tools/manual/record.sh
|
|
# builds with it, nothing else does.
|
|
automation = ["dr-ui/automation"]
|