Files
quickshell/Bar/Time.qml
2026-08-06 10:09:56 +01:00

42 lines
623 B
QML

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
}
}
}