update hypr toplevels

This commit is contained in:
Zacharias-Brohn
2025-11-18 19:25:45 +01:00
parent 5b069bf4c2
commit a40299ed41
13 changed files with 712 additions and 46 deletions
+31
View File
@@ -131,6 +131,20 @@ PanelWindow {
border.color: "#555555"
radius: 8
// Rectangle {
// anchors.bottom: parent.bottom
// anchors.left: parent.left
// anchors.right: parent.right
// height: 4
// bottomLeftRadius: parent.radius
// bottomRightRadius: parent.radius
// color: "#40000000"
// Rectangle {
// anchors.fill: parent
// width: parent.width * ( Math.max(0, Math.min( rootItem.modelData.timer ) ) )
// }
// }
Component.onCompleted: {
root.notifRegions.push( notifRegion.createObject(root, { item: backgroundRect }));
}
@@ -217,6 +231,23 @@ PanelWindow {
}
}
}
ElapsedTimer {
id: timer
}
}
MouseArea {
property int timePassed
anchors.fill: parent
hoverEnabled: true
onEntered: {
// rootItem.modelData.timer.interval = 5000 - timer.restartMs();
rootItem.modelData.timer.stop();
}
onExited: {
rootItem.modelData.timer.start();
}
}
}
}