aboutsummaryrefslogtreecommitdiff
path: root/quickshell/items/Spin.qml
diff options
context:
space:
mode:
authorAargh Rai <aargh.rai+git@gmail.com>2026-08-06 00:29:36 +0530
committerAargh Rai <aargh.rai+git@gmail.com>2026-08-06 00:29:36 +0530
commit91a5f9790cfd4a98ee940633694fb512ecf24942 (patch)
treeb20bdd22e304234b6893e20d0ca5fbfd042f2184 /quickshell/items/Spin.qml
parentced774e19c36fb3b0b33a3846e7c9cf874b0c206 (diff)
i3 > hyprland & x11 > wayland
Diffstat (limited to 'quickshell/items/Spin.qml')
-rw-r--r--quickshell/items/Spin.qml45
1 files changed, 0 insertions, 45 deletions
diff --git a/quickshell/items/Spin.qml b/quickshell/items/Spin.qml
deleted file mode 100644
index 72e6105..0000000
--- a/quickshell/items/Spin.qml
+++ /dev/null
@@ -1,45 +0,0 @@
-import QtQuick
-import QtQuick.Layouts
-
-RowLayout {
- spacing: 0
- Text {
- text: " Spin:"
- color: shellRoot.white
- font {
- family: shellRoot.fontFamily
- pixelSize: shellRoot.fontSize
- }
- }
- Text {
- property var formatMode: "HH:mm:ss"
-
- id: clock
- text: Qt.formatDateTime(new Date(), clock.formatMode)
- color: shellRoot.purple
- font {
- family: shellRoot.fontFamily
- pixelSize: shellRoot.fontSize
- bold: true
- }
-
- Timer {
- interval: 1000
- running: true
- repeat: true
- onTriggered: clock.text = Qt.formatDateTime(new Date(), clock.formatMode)
- }
-
- MouseArea {
- anchors.fill: parent
- onClicked: {
- if (clock.formatMode === "HH:mm:ss") {
- clock.formatMode = "yyyy/MM/dd, dddd"
- } else {
- clock.formatMode = "HH:mm:ss"
- }
- clock.text = Qt.formatDateTime(new Date(), clock.formatMode)
- }
- }
- }
-}