first_push
This commit is contained in:
commit
ca41081e8f
18 changed files with 5559 additions and 0 deletions
19
src/lib.rs
Normal file
19
src/lib.rs
Normal 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"
|
||||
)))
|
||||
}};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue