Switched to Codeberg
This commit is contained in:
commit
a611bcdf15
29 changed files with 2302 additions and 0 deletions
25
quickshell/modules/bar/Clock.qml
Normal file
25
quickshell/modules/bar/Clock.qml
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
import Quickshell
|
||||
import QtQuick
|
||||
import qs
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
clip: true
|
||||
implicitHeight: Appearance.appletRadHeight
|
||||
implicitWidth: clockText.implicitWidth + 25
|
||||
color: Appearance.colAppBg
|
||||
radius: Appearance.appletRadHeight
|
||||
SystemClock {
|
||||
id: clock
|
||||
precision: SystemClock.Seconds
|
||||
}
|
||||
Text {
|
||||
id: clockText
|
||||
anchors.centerIn: root
|
||||
font.family: Appearance.font
|
||||
font.pixelSize: Appearance.fontSize
|
||||
font.bold: true
|
||||
color: Appearance.colFg
|
||||
text: Qt.formatDateTime(clock.date, "yyyy.mm.dd - hh:mm:ss")
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue