networks + bluetooth: highlight active
This commit is contained in:
parent
1ad972b59b
commit
c81616882e
4 changed files with 14 additions and 2 deletions
|
|
@ -38,6 +38,10 @@ $-accent: scheme.$rosewater;
|
||||||
background-color: scheme.$surface1;
|
background-color: scheme.$surface1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
color: $-accent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -38,6 +38,10 @@ $-accent: scheme.$rosewater;
|
||||||
background-color: scheme.$surface1;
|
background-color: scheme.$surface1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
&.active {
|
||||||
|
color: $-accent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,7 @@ import AstalBluetooth from "gi://AstalBluetooth";
|
||||||
import PopdownWindow from "../../widgets/popdownwindow";
|
import PopdownWindow from "../../widgets/popdownwindow";
|
||||||
|
|
||||||
const BluetoothDevice = (device: AstalBluetooth.Device) => (
|
const BluetoothDevice = (device: AstalBluetooth.Device) => (
|
||||||
<box className="device">
|
<box className={bind(device, "connected").as(c => `device ${c ? "active" : ""}`)}>
|
||||||
<icon
|
<icon
|
||||||
className="icon"
|
className="icon"
|
||||||
icon={bind(device, "icon").as(i =>
|
icon={bind(device, "icon").as(i =>
|
||||||
|
|
|
||||||
|
|
@ -4,7 +4,11 @@ import AstalNetwork from "gi://AstalNetwork";
|
||||||
import PopdownWindow from "../../widgets/popdownwindow";
|
import PopdownWindow from "../../widgets/popdownwindow";
|
||||||
|
|
||||||
const Network = (accessPoint: AstalNetwork.AccessPoint) => (
|
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")} />
|
<icon className="icon" icon={bind(accessPoint, "iconName")} />
|
||||||
<label
|
<label
|
||||||
truncate
|
truncate
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue