mirror of
https://github.com/YGGverse/Yoda.git
synced 2025-08-26 06:21:58 +00:00
indicate proxied connections by coloring the request entry
This commit is contained in:
parent
7087d8ef7c
commit
c7a9a62566
@ -135,6 +135,15 @@ impl Request {
|
||||
if e.focus_child().is_some() {
|
||||
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
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user