BlueGit

ict rusty-teams

fix(ci): green tests on Linux and Windows

- Lucide-mapped icons take the canonical 800 box whatever viewBox the symbol has; done_all's baseline shift no longer leaks into the CheckCheck menu icon
- webview probe example passes the new HostConfig log field

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-11-11 · 2 weeks ago

Hash
16bcf9674252b72b48d6fd9ece882d7270cffd69
Parent
ddfbb9a3
2 files changed +10 −5
crates/app-base/src/assets.rs +9 −5
@@ -381,7 +381,7 @@ const LUCIDE_AS_MATERIAL: [(&str, &str); 159] = [
381 381 ("icons/zap.svg", "symbols/bolt.svg"),
382 382 ];
383 383
384 const MATERIAL_VIEW_BOX: &[u8] = b"viewBox=\"0 -960 960 960\"";
384 const VIEW_BOX_START: &[u8] = b"viewBox=\"";
385 385 const LUCIDE_SIZED_VIEW_BOX: &[u8] = b"viewBox=\"80 -880 800 800\"";
386 386
387 387 fn symbol_bytes(path: &str) -> Option<&'static [u8]> {
@@ -389,10 +389,14 @@ fn symbol_bytes(path: &str) -> Option<&'static [u8]> {
389 389 }
390 390
391 391 fn at_lucide_size(svg: &[u8]) -> Vec<u8> {
392 match svg.windows(MATERIAL_VIEW_BOX.len()).position(|window| window == MATERIAL_VIEW_BOX) {
393 Some(start) => [&svg[..start], LUCIDE_SIZED_VIEW_BOX, &svg[start + MATERIAL_VIEW_BOX.len()..]].concat(),
394 None => svg.to_vec(),
395 }
392 let Some(start) = svg.windows(VIEW_BOX_START.len()).position(|window| window == VIEW_BOX_START) else {
393 return svg.to_vec();
394 };
395 let values_start = start + VIEW_BOX_START.len();
396 let Some(values_length) = svg[values_start..].iter().position(|&byte| byte == b'"') else {
397 return svg.to_vec();
398 };
399 [&svg[..start], LUCIDE_SIZED_VIEW_BOX, &svg[values_start + values_length + 1..]].concat()
396 400 }
397 401
398 402 pub const FILLED_PREFIX: &str = "filled/";
@@ -381,7 +381,7 @@ const LUCIDE_AS_MATERIAL: [(&str, &str); 159] = [
381 ("icons/zap.svg", "symbols/bolt.svg"),
381 ("icons/zap.svg", "symbols/bolt.svg"),
382];
382];
383
383
384const MATERIAL_VIEW_BOX: &[u8] = b"viewBox=\"0 -960 960 960\"";
384const VIEW_BOX_START: &[u8] = b"viewBox=\"";
385const LUCIDE_SIZED_VIEW_BOX: &[u8] = b"viewBox=\"80 -880 800 800\"";
385const LUCIDE_SIZED_VIEW_BOX: &[u8] = b"viewBox=\"80 -880 800 800\"";
386
386
387fn symbol_bytes(path: &str) -> Option<&'static [u8]> {
387fn symbol_bytes(path: &str) -> Option<&'static [u8]> {
@@ -389,10 +389,14 @@ fn symbol_bytes(path: &str) -> Option<&'static [u8]> {
389}
389}
390
390
391fn at_lucide_size(svg: &[u8]) -> Vec<u8> {
391fn at_lucide_size(svg: &[u8]) -> Vec<u8> {
392 match svg.windows(MATERIAL_VIEW_BOX.len()).position(|window| window == MATERIAL_VIEW_BOX) {
392 let Some(start) = svg.windows(VIEW_BOX_START.len()).position(|window| window == VIEW_BOX_START) else {
393 Some(start) => [&svg[..start], LUCIDE_SIZED_VIEW_BOX, &svg[start + MATERIAL_VIEW_BOX.len()..]].concat(),
393 return svg.to_vec();
394 None => svg.to_vec(),
394 };
395 }
395 let values_start = start + VIEW_BOX_START.len();
396 let Some(values_length) = svg[values_start..].iter().position(|&byte| byte == b'"') else {
397 return svg.to_vec();
398 };
399 [&svg[..start], LUCIDE_SIZED_VIEW_BOX, &svg[values_start + values_length + 1..]].concat()
396}
400}
397
401
398pub const FILLED_PREFIX: &str = "filled/";
402pub const FILLED_PREFIX: &str = "filled/";
crates/webview/examples/probe.rs +1 −0
@@ -21,6 +21,7 @@ async fn main() {
21 21 let transport = webview::start(webview::HostConfig {
22 22 user_data_folder: folder,
23 23 window_title: "Rusty Teams probe - Sign in".into(),
24 log: |line| println!("{line}"),
24 25 });
25 26 let session = match Session::with_transport(transport, SessionConfig::default()).await {
26 27 Ok(session) => session,
@@ -21,6 +21,7 @@ async fn main() {
21 let transport = webview::start(webview::HostConfig {
21 let transport = webview::start(webview::HostConfig {
22 user_data_folder: folder,
22 user_data_folder: folder,
23 window_title: "Rusty Teams probe - Sign in".into(),
23 window_title: "Rusty Teams probe - Sign in".into(),
24 log: |line| println!("{line}"),
24 });
25 });
25 let session = match Session::with_transport(transport, SessionConfig::default()).await {
26 let session = match Session::with_transport(transport, SessionConfig::default()).await {
26 Ok(session) => session,
27 Ok(session) => session,