mirror of
https://github.com/YGGverse/Yoda.git
synced 2026-03-31 16:45:27 +00:00
indicate proxied connections by coloring the request entry
This commit is contained in:
parent
7087d8ef7c
commit
c7a9a62566
1 changed files with 9 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue