have a clock again

This commit is contained in:
2026-08-06 10:09:56 +01:00
parent 9e0887c474
commit 8ba73b061f
3 changed files with 78 additions and 48 deletions

41
Bar/Time.qml Normal file
View File

@@ -0,0 +1,41 @@
import QtQuick
import QtQuick.Controls
import Quickshell
import Quickshell.Hyprland
import "../Color.js" as Colors
import "../Components/"
import "../Services/"
Container {
id: root
required property HyprlandMonitor monitor
boxColor: Colors.mauve
defaultItem: time
exclusiveMonitor: root.monitor
states: [
State {
name: "hovered"
when: root.hovered == true
PropertyChanges {
root.boxHeight: 32
root.boxRadius: 12
root.boxWidth: 110
}
}
]
Component {
id: time
StyledText {
horizontalAlignment: Qt.AlignCenter
text: Time.time
verticalAlignment: Qt.AlignVCenter
}
}
}