breadbar no longer hardcodes BAR_HEIGHT/BAR_MARGIN_TOP/BAR_MARGIN_SIDES/ CHIP_HEIGHT/ICON_PX or the root window's layer-shell setup: it loads bread_theme:🐚:ShellTheme once (theme::shell_theme(), cached in a thread-local) and reads bar.window (anchors, margin, exclusive zone, keyboard mode - now set explicitly instead of relying on the library default) plus tokens.{icon_px,chip_height} from it everywhere those used to be literals. The four satellite surfaces (breadbar-osd, breadbar-notif, breadbar-panel, breadbar-dismiss) now get their anchor/margin/width/layer from the manifest's [surfaces.*] table via a small new surface::apply() helper, narrowly scoped to the three anchor shapes those surfaces actually use. The pre-existing 8px gap between the panel's top margin and the dismiss scrim's is preserved exactly (and now commented) rather than "fixed". theme.rs's load_css() keeps its ~250 lines of hand-written breadbar CSS (notifications, wifi popover, control panel, media widget) but now reads its five radius/pad locals and the two easing curves (spring vs spring_settle - hover/settle transitions were previously miscategorized as the overshoot curve in the constant audit; the actual code already used the settle curve there, confirmed against src) from theme tokens instead of hardcoding them. Also wires bread_theme:🐚:watch() so editing the active theme's theme.toml/extra.css hot-reloads CSS tokens without a restart, same as a pywal palette change already does. Window-spec values still need a restart per the plan (read once at window-construction time). Verified pixel-identical: captured all 10 breadbar --screenshot views (bar, control-panel, connectivity-wifi/bluetooth, media-popover, notification/-critical, osd-volume/-brightness, wifi-add-dialog) via bread-capture's isolated headless-Sway harness against both the pre-change and post-change binaries; every view diffs byte-identical at the decoded-pixel level.
48 lines
2.3 KiB
TOML
48 lines
2.3 KiB
TOML
[package]
|
|
name = "breadbar"
|
|
version = "0.3.3"
|
|
edition = "2021"
|
|
description = "Minimal status bar and notification daemon for Hyprland on Wayland"
|
|
license = "MIT"
|
|
authors = ["Breadway <plasticbread849@gmail.com>"]
|
|
repository = "https://git.breadway.dev/Breadway/breadbar"
|
|
keywords = ["wayland", "hyprland", "bar", "status-bar", "gtk4"]
|
|
categories = ["gui"]
|
|
|
|
[dependencies]
|
|
bread-theme = { git = "https://git.breadway.dev/Breadway/bread-ecosystem", tag = "v0.7.4", features = ["gtk"] }
|
|
# Widget rendering client: bread-utils::BreadClient (emit/request/subscribe)
|
|
# for talking to breadd's IPC socket, and bread-shared purely for the
|
|
# WidgetSpec/WidgetNode wire types so we deserialize into real structs
|
|
# instead of hand-parsing serde_json::Value. See src/widgets/.
|
|
bread-utils = { git = "https://git.breadway.dev/Breadway/bread-ecosystem", tag = "v0.7.4", features = ["bread-client"] }
|
|
# v0.8.0-rc.1 carries bread_shared::widget; keep this bread tag even if
|
|
# ecosystem crates move independently.
|
|
bread-shared = { git = "https://git.breadway.dev/Breadway/bread", tag = "v0.8.0-rc.1" }
|
|
# Capture primitives for `--screenshot` mode — see src/screenshot.rs.
|
|
bread-screenshots = { git = "https://git.breadway.dev/Breadway/bread-ecosystem", tag = "v0.7.4" }
|
|
gtk4 = { version = "0.11", features = ["v4_12"] }
|
|
gtk4-layer-shell = "0.8"
|
|
relm4 = { version = "0.11", features = ["macros"] }
|
|
hyprland = { version = "0.4.0-beta.3", features = ["tokio"] }
|
|
futures-lite = "2"
|
|
zbus = { version = "5", default-features = false, features = ["tokio"] }
|
|
tokio = { version = "1", features = ["rt-multi-thread", "macros", "time", "process", "signal", "sync"] }
|
|
serde = { version = "1", features = ["derive"] }
|
|
serde_json = "1"
|
|
clap = { version = "4", features = ["derive"] }
|
|
anyhow = "1"
|
|
# Pure-Rust SVG rasteriser (default features off → no text/font deps; the icons
|
|
# are vector-only). Needed because librsvg dropped its gdk-pixbuf SVG loader.
|
|
resvg = { version = "0.47", default-features = false }
|
|
|
|
[profile.release]
|
|
lto = "thin"
|
|
codegen-units = 1
|
|
strip = "symbols"
|
|
|
|
# DEV ONLY — remove before tagging. Points bread-theme at the local
|
|
# bread-ecosystem checkout so Phase 2 can build against `bread_theme::shell`
|
|
# (feature/shell-theme-manifest) before it is tagged as a release.
|
|
[patch."https://git.breadway.dev/Breadway/bread-ecosystem"]
|
|
bread-theme = { path = "../bread-ecosystem/bread-theme" }
|