status bar
git clone https://git.lucas.co/cce-status-interface.git
Build TextAttrs with ..Default::default()
cce-ui's TextAttrs gains a `stretch` field; ending the literal in
`..Default::default()` keeps this crate compiling against it and
against the currently pinned cce-ui alike, so no repin is needed.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
src/main.rs | 2 +-
src/osd.rs | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main.rs b/src/main.rs
index f10f963..8f9e52b 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -1800,7 +1800,7 @@ impl cce_ui::engine::Application for StatusApp {
}
for (text, tsize, x, y, color, font, bounds, layout, weight) in &self.text_prims {
- let attrs = cce_ui::scene::paint::TextAttrs { italic: false, weight: *weight };
+ let attrs = cce_ui::scene::paint::TextAttrs { italic: false, weight: *weight, ..Default::default() };
match layout {
Some(l) => pc.text_boxed(text.clone(), *x, *y, *tsize, *color, font.clone(), *bounds, attrs, *l),
// Glyphs are drawn plain: contrast is the compositor's job,
diff --git a/src/osd.rs b/src/osd.rs
index 10b7ef1..f299154 100644
--- a/src/osd.rs
+++ b/src/osd.rs
@@ -514,7 +514,7 @@ impl cce_ui::engine::Application for OsdApp {
cce_ui::icon_tint(color),
Some(font_family.clone()),
None,
- cce_ui::scene::paint::TextAttrs { italic: false, weight },
+ cce_ui::scene::paint::TextAttrs { italic: false, weight, ..Default::default() },
);
}