first_push

This commit is contained in:
Your Name 2025-04-27 14:44:33 +02:00
commit ca41081e8f
18 changed files with 5559 additions and 0 deletions

19
src/lib.rs Normal file
View file

@ -0,0 +1,19 @@
use iced::widget::{svg, Svg};
pub mod header;
pub mod sidebar;
pub mod theme;
pub fn svg_icon<'a>(bytes: &'static [u8]) -> Svg<'a, theme::Theme> {
svg(svg::Handle::from_memory(bytes))
}
use crate as iced_material;
#[macro_export]
macro_rules! icon {
($message_id:literal) => {{
iced_material::svg_icon(include_bytes!(concat!(
concat!("/home/me/workspace/lucide/icons/", $message_id),
".svg"
)))
}};
}