svg class icons

This commit is contained in:
Robin Appelman 2023-04-14 21:51:46 +02:00
commit f7f163bc49
22 changed files with 79 additions and 169 deletions

View file

@ -13,7 +13,7 @@ pub fn bundle_raw(input: &str) -> Vec<u8> {
fn guess_embed(path: &str) -> (&'static str, bool) {
match path.split('.').last().unwrap() {
"svg" => ("image/svg+xml", false),
"svg" => ("image/svg+xml", true),
"png" => ("image/png", true),
ext => panic!("no mimetype known for {ext}"),
}