import QtQuick import Quickshell import "." as M import "../services" as S import "../applets" as C M.BarModule { id: root spacing: Math.max(1, S.Theme.moduleSpacing - 2) visible: S.Modules.gpu.enable && S.SystemStats.gpuAvailable tooltip: "GPU: " + S.SystemStats.gpuUsage + "%" M.BarIcon { icon: "\uEB4C" anchors.verticalCenter: parent.verticalCenter } M.BarLabel { label: S.SystemStats.gpuUsage + "%" minText: "100%" anchors.verticalCenter: parent.verticalCenter } M.HoverPanel { id: hoverPanel showPanel: root._showPanel screen: QsWindow.window?.screen ?? null anchorItem: root accentColor: root.accentColor panelNamespace: "nova-gpu" panelTitle: "GPU" contentWidth: 240 onDismissed: root.dismissPanel() C.GpuApplet { width: hoverPanel.contentWidth active: root._showPanel accentColor: root.accentColor } } }