wgui: Separate user and wgui assets, topmost widgets (poc)

This commit is contained in:
Aleksander
2025-10-05 13:48:58 +02:00
parent 71d7d50e35
commit 3dff9c5882
32 changed files with 442 additions and 151 deletions

View File

@@ -0,0 +1,12 @@
#[derive(rust_embed::Embed)]
#[folder = "assets/"]
pub struct AssetInternal;
impl crate::assets::AssetProvider for AssetInternal {
fn load_from_path(&mut self, path: &str) -> anyhow::Result<Vec<u8>> {
match AssetInternal::get(path) {
Some(data) => Ok(data.data.to_vec()),
None => anyhow::bail!("internal file {path} not found"),
}
}
}