add tooltips
This commit is contained in:
parent
7ca7e1e952
commit
6370732e4e
15 changed files with 123 additions and 1 deletions
|
|
@ -1,4 +1,5 @@
|
|||
import QtQuick
|
||||
import QtQuick.Controls
|
||||
import Quickshell.Io
|
||||
import "." as M
|
||||
|
||||
|
|
@ -58,4 +59,15 @@ Row {
|
|||
Process {
|
||||
id: clicker
|
||||
}
|
||||
HoverHandler { id: hover }
|
||||
ToolTip {
|
||||
visible: hover.hovered
|
||||
text: {
|
||||
const parts = [];
|
||||
parts.push(root.count + " notification" + (root.count !== 1 ? "s" : ""));
|
||||
if (root.dnd) parts.push("Do not disturb");
|
||||
if (root.inhibited) parts.push("Inhibited");
|
||||
return parts.join("\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue