notes editor over the vault (Obsidian-compatible)
git clone https://git.lucas.co/cce-notes.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/panel.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/panel.rs b/src/panel.rs
index e4a0f29..98d6524 100644
--- a/src/panel.rs
+++ b/src/panel.rs
@@ -153,7 +153,7 @@ impl Panel {
Kind::Header => (family.clone(), small, cce_ui::colors::TEXT_DIM, TextAttrs::default()),
Kind::Title => (family.clone(), size, cce_ui::colors::TEXT_FG, TextAttrs::default()),
Kind::Line => (body.clone(), small, cce_ui::colors::TEXT_FG, TextAttrs::default()),
- Kind::Note => (body.clone(), small, cce_ui::colors::TEXT_DIM, TextAttrs { italic: true, weight: None }),
+ Kind::Note => (body.clone(), small, cce_ui::colors::TEXT_DIM, TextAttrs { italic: true, weight: None, ..Default::default() }),
};
let ty = cce_ui::layout::align_text_y(r.y, r.height, fsize, 0.0);
pc.text_attrs(item.text.clone(), x, ty, fsize, srgb_u8(color), Some(font), bounds, attrs);