bar(IdleInhibitor): Color icon when activated (#2395)

This commit is contained in:
Aaron Tulino authored and GitHub committed 2026-07-16 12:18:19 -04:00
1 parent 3c0f2cbc48
commit 9ddea82063
1 file changed
+4 -1
@@ -7,6 +7,9 @@ import qs.Widgets
BasePill {
id: root
property color idleColor: Theme.widgetTextColor
property color inhibitColor: Theme.primary
content: Component {
Item {
implicitWidth: icon.width
@@ -17,7 +20,7 @@ BasePill {
anchors.centerIn: parent
name: SessionService.idleInhibited ? "motion_sensor_active" : "motion_sensor_idle"
size: Theme.barIconSize(root.barThickness, -4, root.barConfig?.maximizeWidgetIcons, root.barConfig?.iconScale)
color: Theme.widgetTextColor
color: SessionService.idleInhibited ? inhibitColor : idleColor
}
}
}