mirror of
https://github.com/tuxdotrs/tpanel.git
synced 2026-09-19 18:19:02 +05:30
24 lines
430 B
QML
24 lines
430 B
QML
pragma ComponentBehavior: Bound
|
|
|
|
import Quickshell
|
|
import qs.config
|
|
import qs.ui
|
|
import qs.services
|
|
|
|
BarButton {
|
|
id: root
|
|
|
|
hoverHighlight: false
|
|
pointerCursor: false
|
|
iconSource: GPU.icon
|
|
|
|
visible: GPU.connected && GPU.gpu !== null
|
|
opacity: GPU.gpu !== null && GPU.gpu.known ? 1 : 0
|
|
|
|
label: {
|
|
if (!GPU.gpu)
|
|
return "NA";
|
|
return GPU.gpu.blocked ? "Blocked" : "Active";
|
|
}
|
|
}
|