add tooltips

This commit is contained in:
Damocles 2026-04-12 00:49:58 +02:00
parent 7ca7e1e952
commit 6370732e4e
15 changed files with 123 additions and 1 deletions

View file

@ -1,5 +1,6 @@
import QtQuick
import Quickshell.Io
import QtQuick.Controls
import "." as M
Row {
@ -63,4 +64,9 @@ Row {
font.family: M.Theme.fontFamily
verticalAlignment: Text.AlignVCenter
}
HoverHandler { id: hover }
ToolTip {
visible: hover.hovered
text: "CPU: " + root.usage + "%\n" + root.freqGhz.toFixed(2) + " GHz"
}
}