A solid background can't reveal whether a surface that's supposed to be translucent (breadbox/breadclip/breadsearch's full-screen overlay windows, breadbar's alpha-blended notification/OSD surfaces) is actually compositing as translucent — a flat color showing through a flat color still just looks flat. Generates a diagonal rainbow gradient (full hue sweep, via the `image` crate) sized exactly to the capture canvas and sets it as Sway's output background instead. Needed installing swaybg (the external helper Sway's `output ... bg` config directive shells out to) — without it the bg command silently no-ops and the canvas stays black, which is why the first attempt at this looked identical to the old flat-color version.
21 lines
780 B
TOML
21 lines
780 B
TOML
[package]
|
|
name = "bread-capture"
|
|
version.workspace = true
|
|
edition.workspace = true
|
|
license.workspace = true
|
|
authors.workspace = true
|
|
description = "Orchestrator for the bread ecosystem's UI screenshot tooling: drives each app's --screenshot mode and collects the resulting PNGs"
|
|
repository = "https://git.breadway.dev/Breadway/bread-ecosystem"
|
|
keywords = ["screenshot", "ci", "tooling"]
|
|
|
|
[[bin]]
|
|
name = "bread-capture"
|
|
path = "src/main.rs"
|
|
|
|
[dependencies]
|
|
bread-utils = { path = "../bread-utils" }
|
|
clap = { workspace = true }
|
|
anyhow = { workspace = true }
|
|
# Generates the isolated capture canvas's rainbow-gradient background — see
|
|
# isolation.rs. png-only: no decoding, no other format support needed.
|
|
image = { version = "0.25", default-features = false, features = ["png"] }
|