From c7a9a62566e33f9f621b126fb42ebefc42cbbc0e Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 24 Jul 2025 09:28:43 +0300 Subject: [PATCH] indicate proxied connections by coloring the request entry --- .../browser/window/tab/item/page/navigation/request.rs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/app/browser/window/tab/item/page/navigation/request.rs b/src/app/browser/window/tab/item/page/navigation/request.rs index 6a660eee..71e221f2 100644 --- a/src/app/browser/window/tab/item/page/navigation/request.rs +++ b/src/app/browser/window/tab/item/page/navigation/request.rs @@ -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