indicate proxied connections by coloring the request entry

This commit is contained in:
yggverse 2025-07-24 09:28:43 +03:00
parent 7087d8ef7c
commit c7a9a62566

View File

@ -135,6 +135,15 @@ impl Request {
if e.focus_child().is_some() { if e.focus_child().is_some() {
s.update(Some(50)); // @TODO optional s.update(Some(50)); // @TODO optional
} }
// Indicate proxy connections
{
const C: &str = "accent";
if uri(e).is_some_and(|u| p.proxy.matches(&u).is_some()) {
e.set_css_classes(&[C])
} else {
e.remove_css_class(C)
}
}
} }
})); // `suggestion` wants `signal_handler_id` to block this event on autocomplete navigation })); // `suggestion` wants `signal_handler_id` to block this event on autocomplete navigation