From c81616882eb7819e69ce39537d38c12485289c28 Mon Sep 17 00:00:00 2001
From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>
Date: Fri, 17 Jan 2025 15:01:17 +1100
Subject: networks + bluetooth: highlight active

---
 src/modules/popdowns/networks.tsx | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/modules/popdowns/networks.tsx')

diff --git a/src/modules/popdowns/networks.tsx b/src/modules/popdowns/networks.tsx
index 0e9fe2f..18a38d3 100644
--- a/src/modules/popdowns/networks.tsx
+++ b/src/modules/popdowns/networks.tsx
@@ -4,7 +4,11 @@ import AstalNetwork from "gi://AstalNetwork";
 import PopdownWindow from "../../widgets/popdownwindow";
 
 const Network = (accessPoint: AstalNetwork.AccessPoint) => (
-    <box className="network">
+    <box
+        className={bind(AstalNetwork.get_default().wifi, "activeAccessPoint").as(
+            a => `network ${a === accessPoint ? "active" : ""}`
+        )}
+    >
         <icon className="icon" icon={bind(accessPoint, "iconName")} />
         <label
             truncate
-- 
cgit v1.2.3-freya

